wmii/mk/dir.mk

33 lines
632 B
Makefile
Raw Normal View History

MKSUBDIR = \
2008-02-17 21:53:56 +03:00
set -e; \
targ=$@; targ=$${targ\#d}; \
for i in $$dirs; do \
2010-05-24 16:49:12 +04:00
export $(SUBMAKE_EXPORT) BASE=$(BASE)$$i/; \
if [ ! -d $$i ]; then \
echo Skipping nonexistent directory: $$i 1>&2; \
else \
echo MAKE $$targ $$BASE; \
(cd $$i && $(MAKE) $$targ) || exit $?; \
fi; \
done
2007-05-21 05:22:12 +04:00
dall:
+dirs="$(DIRS)"; $(MKSUBDIR)
dclean:
+dirs="$(DIRS)"; $(MKSUBDIR)
dinstall:
+dirs="$(INSTDIRS)"; $(MKSUBDIR)
duninstall:
+dirs="$(INSTDIRS)"; $(MKSUBDIR)
ddepend:
+dirs="$(DIRS)"; $(MKSUBDIR)
all: dall
clean: dclean
install: dinstall
uninstall: duninstall
depend: ddepend
2007-05-21 05:22:12 +04:00
INSTDIRS = $(DIRS)
2007-05-21 05:22:12 +04:00