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