# File: cmt/fragments/genconfig_header # Author: Wim Lavrijsen (WLavrijsen@lbl.gov) # Pere Mato # Use genconf.exe to create configurables python modules, then have the # normal python install procedure take over. .PHONY: ${CONSTITUENT} ${CONSTITUENT}clean confpy = ${CONSTITUENT}.py conflib = $(bin)$(library_prefix)$(library).$(shlibsuffix) dbpy = $(library)_confDb.py instdir = $(CMTINSTALLAREA)$(shared_install_subdir)\python\$(package) product = $(instdir)\$(confpy) initpy = $(instdir)\__init__.py !if defined (GENCONF_ECHO) genconf_silent = !else genconf_silent = $(silent) !endif ${CONSTITUENT} :: ${CONSTITUENT}install install :: ${CONSTITUENT}install ${CONSTITUENT}install : $(outdir)\$(confpy) @$(install_command) --exclude="*.py?" --exclude="__init__.py" $(outdir) $(conf_destdir) $(outdir)\$(confpy) : $(conflib) $(outdir) $(genconf_silent) "$(genconfig_cmd)" $(library_preload) -o $(outdir) -p $(package) \ --configurable-module=$(confModuleName) \ --configurable-default-name=$(confDefaultName) \ --configurable-algorithm=$(confAlgorithm) \ --configurable-algtool=$(confAlgTool) \ --configurable-auditor=$(confAuditor) \ --configurable-service=$(confService) \ -i ../$(tag)/$(library_prefix)$(library).$(shlibsuffix) $(outdir) : @if NOT exist $(outdir) $(mkdir) $(outdir) ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall $(cleanup_silent) $(remove_command) $(outdir)\$(confpy) $(outdir)\$(dbpy) uninstall :: ${CONSTITUENT}uninstall ${CONSTITUENT}uninstall :: @$(uninstall_command) $(conf_destdir)