aboutsummaryrefslogtreecommitdiff
path: root/targets/pseudo/stage/Makefile
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2014-11-30 00:20:20 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2014-11-30 00:20:20 +0000
commitb6209a9b5861cbf265a23afeac999cb27bfc7eae (patch)
treecccfb1631d9c3b519238efb58e573405281c0762 /targets/pseudo/stage/Makefile
parentf1382cffe7703a142e8eea88242485a577c1aeb2 (diff)
downloadsrc-b6209a9b5861cbf265a23afeac999cb27bfc7eae.tar.gz
src-b6209a9b5861cbf265a23afeac999cb27bfc7eae.zip
Rename pkgs to more generic targets (that's what they are)
Reviewed by: marcel
Notes
Notes: svn path=/projects/bmake/; revision=275282
Diffstat (limited to 'targets/pseudo/stage/Makefile')
-rw-r--r--targets/pseudo/stage/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/targets/pseudo/stage/Makefile b/targets/pseudo/stage/Makefile
new file mode 100644
index 000000000000..0889ad20208f
--- /dev/null
+++ b/targets/pseudo/stage/Makefile
@@ -0,0 +1,17 @@
+# $FreeBSD$
+
+# this makefile gets hooked into everyone's dependencies so that
+# distrib-dirs can be done in STAGE_OBJTOP
+all:
+
+# mtree makes a lot of noise if we are not root,
+# we don't need to see it.
+stage-distrib-dirs: .META
+ mkdir -p ${STAGE_OBJTOP}
+ ${.MAKE} -C ${SRCTOP}/etc distrib-dirs -DWITH_TESTS DESTDIR=${STAGE_OBJTOP} > $@
+
+.include <bsd.prog.mk>
+
+.if ${.MAKE.LEVEL} > 0 && ${MK_STAGING} == "yes"
+all: stage-distrib-dirs
+.endif