From: SourceForge.net <no...@so...> - 2005-07-20 02:32:39
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3256205 By: wangbaojun add "" seems don't work under GNU make, I solve it by this way: # for win32 shell, translate '/' to '\' dep_cdir = $(shell echo $(OBJDIR) | sed 's/\//\\//g') dep_cwd = $(shell pwd) DUMMY_DIR := /dev/null DEPSUBDIRS = $(SUBDIRS) DEPSUBDIRS += $(DUMMY_DIR) #some shell doesn't support `for' with empty argument list such as msys shell(sh-2.04) dep: if [ -f .objs ]; then for src in `find $(dep_cwd) -name '*.[cCs]' -maxdepth 1 -mindepth 1`; do $(DEPTOOL) $$src $(INCLUDE) 2>>$(DEPERRLOG) | sed -e 's/^\(.*\.o:\)\(.*\)/$(dep_cdir)\/\1\2/g' -e 's/ /\ /g' >.depend & & echo -n "." ; done; echo ""; fi; if [ ! "$(DEPSUBDIRS)" = "$(DUMMY_DIR)" ]; then for dir in $(DEPSUBDIRS); do if [ ! $$dir = "$(DUMMY_DIR)" ]; then $(MAKE) $@ -C $$dir || exit 1; fi; done; fi ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=338575 |