# $HeadURL$ $LastChangedRevision$ BASE_DIR = . include $(BASE_DIR)/bldcfg/prologue.mk include $(BASE_DIR)/bldcfg/settings.mk include $(BASE_DIR)/bldcfg/epilogue.mk # 'case' does not integrate well. CMPTS_ORDERED_UP = $(shell echo $(MODULE_COMPONENTS) | \ xargs -n 1 echo | while read DIR; do \ if [ $$DIR = bldcfg ]; then \ ORDER=1; \ elif [ $$DIR = bin ]; then \ ORDER=2; \ else \ ORDER=3; \ fi; \ echo $$ORDER $$DIR; \ done | sort -k 1n | cut -d' ' -f2) CMPTS_ORDERED_DOWN = $(shell echo $(MODULE_COMPONENTS) | \ xargs -n 1 echo | while read DIR; do \ if [ $$DIR = bldcfg ]; then \ ORDER=3; \ elif [ $$DIR = bin ]; then \ ORDER=2; \ else \ ORDER=1; \ fi; \ echo $$ORDER $$DIR; \ done | sort -k 1n | cut -d' ' -f2) FORCE: install compile: @# This ensures that 'bin' comes before 'doc' @# (which is needed in module alexis-hp) for CMPT in $(CMPTS_ORDERED_UP); do \ ( cd $$CMPT && $(MAKE) $@ ) || exit 1; \ done uninstall clean: @# This ensures that 'doc' comes before 'bin' @# (which is needed in module alexis-hp) for CMPT in $(CMPTS_ORDERED_DOWN); do \ ( cd $$CMPT && $(MAKE) $@ ) || exit 1; \ done distclean: clean ( cd bldcfg && $(MAKE) $@ ) || exit 1 configure: ( cd bldcfg && $(MAKE) $@ ) || exit 1 # Since there is both a target and a directory called 'tests', without the # 'FORCE' dependency, 'make tests' simply says 'tests is up to date'. tests: FORCE @( cd tests && $(MAKE) -s $@ ) || exit 1