############################ # Include global variables # ############################ TOP = ../../.. include $(TOP)/bld/mkcommondefs.mk ########################## # Define local variables # ########################## DIRS = \ src \ target $(DIRS): @$(SET_E); cd $@ && "$(MAKE)" clean: @$(SET_E); \ for dir in $(DIRS); \ do \ (cd $$dir && "$(MAKE)" $@); \ done -$(RM) .make.state .cmake.state distclean: for dir in $(DIRS); \ do \ (cd $$dir && "$(MAKE)" $@); \ done -$(RM) .make.state .cmake.state # Tell make that the following are not real targets so make will process # the rules when the target is a directory which is always up to date. .PHONY: $(DIRS) clean distclean