summaryrefslogtreecommitdiff
path: root/share/examples
diff options
context:
space:
mode:
authoragc <agc@NetBSD.org>2007-09-11 23:23:51 +0000
committeragc <agc@NetBSD.org>2007-09-11 23:23:51 +0000
commitbb80e7775d66f24e6e19ad2482cd176291ec445a (patch)
treeb5219eccde36f4e77ef9eff175e4889e95d09da2 /share/examples
parent696c18a993a1138f12619341dcb79868173b21e5 (diff)
Generalise the tests for OBJDIR and non-OBJDIR builds
Diffstat (limited to 'share/examples')
-rw-r--r--share/examples/refuse/fanoutfs/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/share/examples/refuse/fanoutfs/Makefile b/share/examples/refuse/fanoutfs/Makefile
index b2388a4ea84..6c2a09b22ca 100644
--- a/share/examples/refuse/fanoutfs/Makefile
+++ b/share/examples/refuse/fanoutfs/Makefile
@@ -1,23 +1,28 @@
-# $NetBSD: Makefile,v 1.1 2007/03/31 21:05:56 agc Exp $
+# $NetBSD: Makefile,v 1.2 2007/09/11 23:23:51 agc Exp $
PROG=fanoutfs
LDADD+= -lrefuse
CPPFLAGS+= -g
-NOMAN=yes
+MAN=fanoutfs.8
WARNS=4
.include <bsd.prog.mk>
+.include <bsd.own.mk>
+
+FANOUTOBJDIR!=cd ${.CURDIR} && ${PRINTOBJDIR}
+
test:
echo "# New fanout configuration at `date`" > fan.conf; \
for i in 1 2 3 4 5 6 7 8; do \
mkdir dir$$i; \
- cp defs.h dir$$i; \
+ cp ${.CURDIR}/defs.h dir$$i/defs.h; \
+ cp ${.CURDIR}/defs.h dir$$i/defs.h.$$i; \
echo dir$$i >> fan.conf; \
done; \
- cp Makefile dir4; \
- cp fanoutfs.c dir7; \
- priv ${.CURDIR}/${PROG} -f fan.conf /mnt; \
+ cp ${.CURDIR}/Makefile dir4; \
+ cp ${.CURDIR}/fanoutfs.c dir7; \
+ priv ${FANOUTOBJDIR}/${PROG} -f fan.conf /mnt; \
sleep 1; \
ls -la /mnt; \
sleep 1; \