diff options
author | knarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2011-09-27 04:10:08 +0000 |
---|---|---|
committer | knarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2011-09-27 04:10:08 +0000 |
commit | aeebc07e94b8a96c9634b9fdf3a191bcab304a98 (patch) | |
tree | a7da38575bea46917a671b1913bb1d3957cd1c52 /lib/make/make.configuration | |
parent | f8dbd5ccb2c56ea0aa3a5c633fecfa4be576a780 (diff) |
Replace the SILENT option with a VERBOSE option (of opposite meaning). Default
is still VERBOSE=no, but this now actually produces a lot less output: almost
no "cosmetic" lines (only ---), and no messages for pre- and postprocessing
anymore. Add VERBOSE=yes to get the old beavior of SILENT=no.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4737 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.configuration')
-rw-r--r-- | lib/make/make.configuration | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration index f145eb89..cef05216 100644 --- a/lib/make/make.configuration +++ b/lib/make/make.configuration @@ -9,7 +9,7 @@ # @@*/ # Silence all but designated output -#.SILENT: +#.VERBOSE: # Some configuration variables CONFIG = $(TOP)/config-data @@ -48,6 +48,9 @@ CACTUSLIBS = $(FLESHLIB) $(BINDINGSLIB) # Dividers to make the screen output slightly nicer DIVEL = __________________ DIVIDER = $(DIVEL)$(DIVEL)$(DIVEL)$(DIVEL) +define NOTIFY_DIVIDER + { if test "$(VERBOSE)" == "yes"; then echo $(DIVIDER); fi } +endef # Include the definitions for this configuration include $(CONFIG)/make.config.defn @@ -63,7 +66,7 @@ export PERLINTERP = $(shell echo $(PERL) | sed 's,^/cygdrive/\(.\)/,\1:/,' | sed main: $(EXEDIR)$(DIRSEP)$(EXE) @echo All done ! - @echo $(DIVIDER) + $(NOTIFY_DIVIDER) # Put this in temporarily to make sure that people with existing @@ -132,7 +135,7 @@ $(EXEDIR)$(DIRSEP)$(EXE): $(CONFIG)/make.thornlist $(CONFIG)/cctki_version.h $(p $(CC) $(CFLAGS) -DCCTK_COMPILE_DATETIME="$$datetime" $(CCOMPILEONLY)$(OPTIONSEP)"$(call TRANSFORM_DIRS,$(TOP)/datestamp.o)" -I"$(call TRANSFORM_DIRS,$(CCTK_HOME)/src/include)" -I"$(call TRANSFORM_DIRS,$(CONFIG))" "$(call TRANSFORM_DIRS,$(DATESTAMP))" if [ ! -d $(EXEDIR) ]; then $(MKDIR) $(MKDIRFLAGS) $(EXEDIR) ; fi $(LD) $(CREATEEXE)$(OPTIONSEP)"$(call TRANSFORM_DIRS,$@)" $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(EXTRAFLAGS) "$(call TRANSFORM_DIRS,$(TOP)/datestamp.o)" $(CACTUSLIBLINKLINE) $(GENERAL_LIBRARIES) - @echo $(DIVIDER) + $(NOTIFY_DIVIDER) # Version file $(CONFIG)/cctki_version.h: $(CCTK_HOME)/Makefile @@ -193,7 +196,7 @@ $(CCTK_LIBDIR)/$(LIBNAME_PREFIX)$(CCTK_LIBNAME_PREFIX)%$(LIBNAME_SUFFIX): update $(MKDIR) $(MKDIRFLAGS) $(BUILD_DIR)/$$thorn_name ; \ fi ; \ cd $(BUILD_DIR)/$$thorn_name ; \ - echo $(DIVIDER) ; \ + $(NOTIFY_DIVIDER) ; \ if [ -r "$$src_dir/Makefile" ] ; \ then \ make_file=$$src_dir/Makefile ; \ @@ -201,7 +204,7 @@ $(CCTK_LIBDIR)/$(LIBNAME_PREFIX)$(CCTK_LIBNAME_PREFIX)%$(LIBNAME_SUFFIX): update make_file=$(MAKE_DIR)/make.thornlib ; \ fi ; \ $(MAKE) TOP=$(TOP) SRCDIR=$$src_dir CONFIG=$(CONFIG) NAME=$@ THORN=$$thorn_name USESTHORNS="$(USESTHORNS_$(@:$(CCTK_LIBDIR)/$(LIBNAME_PREFIX)$(CCTK_LIBNAME_PREFIX)%$(LIBNAME_SUFFIX)=%))" -f $$make_file $(FPARFLAGS) - @echo $(DIVIDER) + $(NOTIFY_DIVIDER) # Include any extra dependencies @@ -227,16 +230,16 @@ $(TOP)/ThornList: while [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ do \ echo The thorn list is ; \ - echo $(DIVIDER) ; \ + $(NOTIFY_DIVIDER) ; \ cat $@ ; \ - echo $(DIVIDER) ; \ + $(NOTIFY_DIVIDER) ; \ echo Edit this list \(no\) \? ; \ read action rest ; \ if [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ then $$EDITOR $@ ; fi ; \ done; \ fi - @echo $(DIVIDER) + $(NOTIFY_DIVIDER) # Allow each thorn to include some global dependencies ifneq ($(strip $(THORNS)),) @@ -268,15 +271,15 @@ editthorns: while [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ do \ echo The thorn list is ; \ - echo $(DIVIDER) ; \ + $(NOTIFY_DIVIDER) ; \ cat $(TOP)/ThornList ; \ - echo $(DIVIDER) ; \ + $(NOTIFY_DIVIDER) ; \ echo Edit this list \(no\) \? ; \ read action rest ; \ if [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ then $$EDITOR $(TOP)/ThornList ; fi ; \ done - @echo $(DIVIDER) + $(NOTIFY_DIVIDER) clean: @echo Deleting all object and dependency files in $(TOP) @@ -309,7 +312,7 @@ UNKNOWN_THORNS = $(filter-out $(ALLCACTUSLIBS_BASE), $(BUILDLIST)) build: $(CONFIG)/make.thornlist $(CONFIG)/cctki_version.h $(patsubst %, $(CCTK_LIBDIR)/$(LIBNAME_PREFIX)$(CCTK_LIBNAME_PREFIX)%$(LIBNAME_SUFFIX), $(THORN_BUILDLIST)) if test "x$(UNKNOWN_THORNS)" != "x"; then \ echo "WARNING: Don't know anything about '$(UNKNOWN_THORNS)' !"; \ - echo $(DIVIDER); \ + $(NOTIFY_DIVIDER); \ fi |