2008-01-06 00:55:55 +05:30
|
|
|
# Recursive rules
|
|
|
|
# Adapted from FreeBSDs bsd.subdir.mk
|
|
|
|
_+_ ?= +
|
2008-01-10 05:17:15 +05:30
|
|
|
ECHODIR ?= echo
|
2008-01-06 00:55:55 +05:30
|
|
|
_SUBDIR = @${_+_}for x in ${SUBDIR}; do \
|
|
|
|
if test -d $$x; then \
|
|
|
|
${ECHODIR} "===> ${DIRPRFX}$$x ($@)"; \
|
|
|
|
cd $$x; \
|
|
|
|
${MAKE} $@ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \
|
|
|
|
cd ..; \
|
|
|
|
fi; \
|
|
|
|
if test -d $$x.${OS}; then \
|
|
|
|
${ECHODIR} "===> ${DIRPRFX}$$x.${OS} ($@)"; \
|
|
|
|
cd $$x.${OS}; \
|
|
|
|
${MAKE} $@ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \
|
|
|
|
cd ..; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
all:
|
2008-01-10 05:17:15 +05:30
|
|
|
${_SUBDIR}
|
2008-01-06 00:55:55 +05:30
|
|
|
clean:
|
2008-01-10 05:17:15 +05:30
|
|
|
${_SUBDIR}
|
2008-01-06 00:55:55 +05:30
|
|
|
install:
|
2008-01-10 05:17:15 +05:30
|
|
|
${_SUBDIR}
|
2008-01-07 19:50:13 +05:30
|
|
|
depend:
|
2008-01-10 05:17:15 +05:30
|
|
|
${_SUBDIR}
|