diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-09-23 11:03:05 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-09-23 11:03:05 +0000 |
commit | 34e6a955efce92156a277973cd299488bf93bbf9 (patch) | |
tree | 06dc9abfcad4c20da5bfebe954341e9a5beb57b4 /Makefile | |
parent | 55c1eaada9fe4b846af1be1048239c9021a3ba89 (diff) |
Added new targets gmake configinfo and gmake <config>-configinfo
which gives basic information about the configuration (it just cat's the
file configs/<config>/config-info).
gmake configinfo lists information for each configuration, at the moment they
are all run together since my shell programming isn't up to figuring out how to put a blank line between them (new configurations will have an extra blank line
added to config-info).
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2379 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 33 insertions, 2 deletions
@@ -16,7 +16,7 @@ # # # @enddesc -# @version $Id: Makefile,v 1.122 2001-09-17 18:04:25 allen Exp $ +# @version $Id: Makefile,v 1.123 2001-09-23 11:03:05 allen Exp $ # @@*/ ################################################################################## @@ -186,6 +186,7 @@ DIVIDER = $(DIVEL)$(DIVEL)$(DIVEL)$(DIVEL) # Work out where we are export CCTK_HOME := $(shell pwd | sed 's,^/cygdrive/\(.\)/,\1:/,' | sed 's,^//\(.\)/,\1:/,' ) + # Work out where the configuration directory is ifdef CACTUS_CONFIGS_DIR CONFIGS_DIR = $(CACTUS_CONFIGS_DIR) @@ -197,6 +198,7 @@ export CONFIGS_DIR # Work out which configurations are available CONFIGURATIONS = $(patsubst $(CONFIGS_DIR)/%,%,$(wildcard $(CONFIGS_DIR)/*)) +CONFIGINFOS = $(wildcard $(CONFIGS_DIR)/*/config-info) # Default target does nothing. # Used to set up a default based upon uname or something. @@ -284,7 +286,7 @@ tags: default: @echo $(DIVIDER) @echo Running the configuration program - $(SETUP_ENV) $(PERL) -s $(SETUP) $(SETUP_OPTIONS) + $(SETUP_ENV) $(PERL) -s $(SETUP) $(SETUP_OPTIONS) @echo $(DIVIDER) @echo You are now ready to build the CCTK. @echo This is done by $(MAKE) \<configuration\> @@ -757,6 +759,35 @@ checkout: @echo Running app/arrangement/thorn checkout script $(PERL) ./lib/sbin/checkout.pl +# Show configuration information + +.PHONY: configinfo + +configinfo: +ifeq ($(strip $(CONFIGURATIONS)),) + @echo $(DIVIDER) + @echo No configurations defined. + @echo $(DIVIDER) +else + cat $(CONFIGINFOS) +endif + @echo $(DIVIDER) + +ifneq ($strip($(CONFIGURATIONS)),) +.PHONY: $(addsuffix -configinfo,$(CONFIGURATIONS)) + +$(addsuffix -configinfo,$(CONFIGURATIONS)): + @echo $(DIVIDER) + @echo Displaying configuration information + cat configs/$(@:%-configinfo=%)/config-info +endif + +%-configinfo: + @echo $(DIVIDER) + @echo Configuration $(@:%-configinfo=%) does not exist. + @echo Displaying configuration information aborted. + + # Create sysinfo file .PHONY: sysinfo |