# File: cmt/fragments/genconfig_header # Author: Wim Lavrijsen (WLavrijsen@lbl.gov) # 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 ifdef GENCONF_ECHO genconf_silent = else genconf_silent = $(silent) endif ${CONSTITUENT} :: ${CONSTITUENT}install install :: ${CONSTITUENT}install ${CONSTITUENT}install : $(outdir)/$(confpy) @echo "Installing $(outdir) in $(conf_destdir)" ; \ $(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 [ ! -d $(outdir) ] ; then mkdir -p $(outdir) ; fi ; ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall $(cleanup_silent) $(remove_command) $(outdir)/$(confpy) $(outdir)/$(dbpy) uninstall :: ${CONSTITUENT}uninstall ${CONSTITUENT}uninstall :: @$(uninstall_command) $(conf_destdir)