#include #define IHaveSubdirs #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' # These are everything SUBDIRS1 = libant libdB libCfg libserver libPromote libVIDF libbase_idfs \ libIDFSMath libIDFSFill libIDFSTensor libtrec_idfs SUBDIRS = $(SUBDIRS1) #define Phase(tag,subdirs) @@\ tag:: @@\ @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ @@\ for i in subdirs ;\ @@\ do \ @@\ (cd $$i ; echo "releasing" "in $(CURRENT_DIR)/$$i..."; \ @@\ $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)'; \ @@\ $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' release); \ @@\ done help: @echo off clear @echo "You can either do a make all or a make " @echo "where phase is :" @echo "" @echo " first - " $(SUBDIRS1) @echo "" all:: first Phase(first,$(SUBDIRS1)) DependTarget() clean:: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ for i in $(SUBDIRS) ;\ do \ (cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \ $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \ done release:: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ for i in $(SUBDIRS) ;\ do \ (cd $$i ; echo "releasing" "in $(CURRENT_DIR)/$$i..."; \ $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' release); \ done testing:: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ for i in $(SUBDIRS) ;\ do \ (cd $$i ; echo "copy to testing directory " "in $(CURRENT_DIR)/$$i..."; \ $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' testing); \ done