summaryrefslogtreecommitdiffstats
path: root/targets/pseudo/stage/Makefile
diff options
context:
space:
mode:
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 0000000..0889ad2
--- /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
OpenPOWER on IntegriCloud