xref: /csrg-svn/share/mk/bsd.subdir.mk (revision 41557)
140508Sbostic.MAIN: all
240508Sbostic
3*41557Sbostic_SUBDIRUSE: .USE
440508Sbostic	@for entry in ${SUBDIR}; do \
541461Sbostic		(if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
641461Sbostic			echo "===> $${entry}.${MACHINE}"; \
740518Sbostic			cd ${.CURDIR}/$${entry}.${MACHINE}; \
840508Sbostic		else \
941461Sbostic			echo "===> $$entry"; \
1040518Sbostic			cd ${.CURDIR}/$${entry}; \
1140508Sbostic		fi; \
1240508Sbostic		${MAKE} ${.TARGET}) \
1340508Sbostic	done
1440508Sbostic
15*41557Sbostic${SUBDIR}:
1641461Sbostic	@if test -d ${.TARGET}.${MACHINE}; then \
1741461Sbostic		cd ${.CURDIR}/${.TARGET}.${MACHINE}; \
1841461Sbostic	else \
1941461Sbostic		cd ${.CURDIR}/${.TARGET}; \
2041461Sbostic	fi; \
2141461Sbostic	${MAKE} all
2241461Sbostic
2341461Sbostic.if !target(all)
24*41557Sbosticall: _SUBDIRUSE
2541461Sbostic.endif
2641461Sbostic
2741461Sbostic.if !target(clean)
28*41557Sbosticclean: _SUBDIRUSE
2941461Sbostic.endif
3041461Sbostic
3141461Sbostic.if !target(cleandir)
32*41557Sbosticcleandir: _SUBDIRUSE
3341461Sbostic.endif
3441461Sbostic
3541461Sbostic.if !target(depend)
36*41557Sbosticdepend: _SUBDIRUSE
3741461Sbostic.endif
3841461Sbostic
3941461Sbostic.if !target(lint)
40*41557Sbosticlint: _SUBDIRUSE
4141461Sbostic.endif
4241461Sbostic
4341461Sbostic.if !target(tags)
44*41557Sbostictags: _SUBDIRUSE
4541461Sbostic.endif
4640508Sbostic
4741461Sbostic.if !target(install)
4841461Sbostic.if target(beforeinstall)
49*41557Sbosticbeforeinstall:
5041461Sbostic.endif
51*41557Sbosticrealinstall: _SUBDIRUSE
52*41557Sbosticinstall: afterinstall
53*41557Sbosticafterinall: realinstall
5441461Sbostic.endif
55