wmii/mk/dir.mk

36 lines
681 B
Makefile
Raw Permalink 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)
2010-10-08 00:31:42 +04:00
dtags:
+dirs="$(DIRS)"; $(MKSUBDIR)
all: dall
clean: dclean
install: dinstall
uninstall: duninstall
depend: ddepend
2010-10-08 00:31:42 +04:00
tags: dtags
2007-05-21 05:22:12 +04:00
INSTDIRS = $(DIRS)
2007-05-21 05:22:12 +04:00