X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Fmakefile;h=5e5c392a300605a0c0dfe6807d64088116799044;hb=d18cd8304c44b5a0eb7e8d4399685a924c6f51fb;hp=2334be05a5b7092faaac28e65d55c0e9f2e732eb;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/makefile b/nucleus/makefile index 2334be05..5e5c392a 100644 --- a/nucleus/makefile +++ b/nucleus/makefile @@ -1,7 +1,56 @@ +# Top-level makefile for library, application and test components. + include variables.def -PROJECT = core_modules -BUILD_BEFORE = library applications tools +# Set default locations for the following variables. If the build_variables +# have been sourced in, that takes care of setting these. +ifeq "$(FEISTY_MEOW_DIR)" "" + export FEISTY_MEOW_DIR := $(CURRENT_DIR) +endif +ifeq "$(PRODUCTION_DIR)" "" + export PRODUCTION_DIR = $(FEISTY_MEOW_DIR)/production +endif +ifeq "$(CLAM_DIR)" "" + export CLAM_DIR = $(FEISTY_MEOW_SCRIPTS)/clam +endif + +include $(CLAM_DIR)/cpp/variables.def + +PROJECT = feisty_meow_nucleus +TYPE = hierarchy +FIRST_TARGETS = do_make +BUILD_AFTER = library applications tools + +include $(CLAM_DIR)/cpp/rules.def + +do_make: start_make $(PRODUCTION_DIR)/binaries/manifest.txt end_make + +start_make: show_date.start + +end_make: show_date.end -include rules.def +$(PRODUCTION_DIR)/binaries/manifest.txt: $(PARAMETER_FILE) + $(HIDESH) -c '\ +if [ ! -d "$(EXECUTABLE_DIR)" ]; then mkdir -p "$(EXECUTABLE_DIR)"; fi; \ +if [ $$? -ne 0 ]; then \ + echo build failure while creating executable directory.; \ + exit 1; \ +fi; \ +cp -f "$(PRODUCTION_DIR)/paths.ini" "$(EXECUTABLE_DIR)"; \ +if [ $$? -ne 0 ]; then \ + echo build failure while copying paths initialization file.; \ + exit 1; \ +fi; \ +echo cmd is: $(CLAM_BIN)/value_tagger$(EXE_END) $(PRODUCTION_DIR)/codescan.ini; \ +$(CLAM_BIN)/value_tagger$(EXE_END) $(PRODUCTION_DIR)/codescan.ini; \ +if [ $$? -ne 0 ]; then \ + echo build failure during value tagging.; \ + exit 1; \ +fi; \ +$(CLAM_BIN)/write_build_config$(EXE_END); \ +if [ $$? -ne 0 ]; then \ + echo build failure while writing config.; \ + exit 1; \ +fi; \ + '