# Top-level makefile for library, application and test components. # we set default locations for the following variables. note that this is # only done here at the top-level makefile, so it is important to set these # three in your environment if you intend to work at lower levels in the # hoople source hierarchies. ifeq "$(REPOSITORY_DIR)" "" export REPOSITORY_DIR := $(CURRENT_DIR) endif ifeq "$(CLAM_DIR)" "" ifeq "$(YETI_DIR)" "" export YETI_DIR = $(REPOSITORY_DIR) endif export CLAM_DIR = $(YETI_DIR)/clam endif include $(CLAM_DIR)/cpp/variables.def PROJECT = Root_of_Build_Hierarchy TYPE = hierarchy BUILD_AFTER = source FIRST_TARGETS = start_make $(REPOSITORY_DIR)/manifest.txt LAST_TARGETS = end_make include $(CLAM_DIR)/cpp/rules.def start_make: show_date.start end_make: show_date.end $(REPOSITORY_DIR)/manifest.txt: $(REPOSITORY_DIR)/build.ini -$(HIDER)mkdir $(REPOSITORY_DIR)/exe -$(HIDER)cp $(REPOSITORY_DIR)/bin/paths.ini $(REPOSITORY_DIR)/exe $(CATCHER)$(REPOSITORY_DIR)/bin/value_tagger$(EXE_END) $(REPOSITORY_DIR)/bin/codescan.ini $(CATCHER)$(REPOSITORY_DIR)/bin/write_build_config$(EXE_END) -$(HIDER)cp $(REPOSITORY_DIR)/manifest.txt $(REPOSITORY_DIR)/exe restart_make: @echo ---------------------------- @echo "Restarting make with a new MAKEFLAGS variable because the REPOSITORY_DIR" @echo "variable wasn't set; please see comments at the end of the make, or" @echo "consult the manual at your leisure... Thanks for building the code." @echo http://yeticode.org/clam/manual/clam_docs.html#STEPS_NEEDED @echo ---------------------------- @echo "" $(MAKE) -I $(CLAM_DIR) -f ./makefile @echo "" @echo ---------------------------- @echo Finished with restarted top-level make and exiting. @echo ---------------------------- @echo "" @echo "The make was restarted above using a guessed version of the REPOSITORY_DIR," @echo "YETI_DIR, CLAM_DIR, and MAKEFLAGS variables. These use a default copy of" @echo "the CLAM makefile system to get the build done. If you're going to be working" @echo "in the code, then you probably want to set the REPOSITORY_DIR variable in" @echo "your environment to point at the path to the build. Additionally, you can" @echo "use a different version of the CLAM makefile system by changing the YETI_DIR" @echo "or CLAM_DIR variables. Please refer to the CLAM documentation:" @echo http://yeticode.org/clam/manual/clam_docs.html#STEPS_NEEDED @echo "for more information about the compilation prerequisites. @echo "" @exit 0