Cross Reference: Makefile
xref: /src/share/examples/refuse/fanoutfs/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/share/examples/refuse/fanoutfs/
11.2Sagc# $NetBSD: Makefile,v 1.2 2007/09/11 23:23:51 agc Exp $
21.1Sagc
31.1SagcPROG=fanoutfs
41.1SagcLDADD+= -lrefuse
51.1SagcCPPFLAGS+= -g 
61.2SagcMAN=fanoutfs.8
71.1SagcWARNS=4
81.1Sagc
91.1Sagc.include <bsd.prog.mk>
101.1Sagc
111.2Sagc.include <bsd.own.mk>
121.2Sagc
131.2SagcFANOUTOBJDIR!=cd ${.CURDIR} && ${PRINTOBJDIR}
141.2Sagc
151.1Sagctest:
161.1Sagc	echo "# New fanout configuration at `date`" > fan.conf; 	\
171.1Sagc	for i in 1 2 3 4 5 6 7 8; do					\
181.1Sagc		mkdir dir$$i;						\
191.2Sagc		cp ${.CURDIR}/defs.h dir$$i/defs.h;			\
201.2Sagc		cp ${.CURDIR}/defs.h dir$$i/defs.h.$$i;			\
211.1Sagc		echo dir$$i >> fan.conf;				\
221.1Sagc	done;								\
231.2Sagc	cp ${.CURDIR}/Makefile dir4;					\
241.2Sagc	cp ${.CURDIR}/fanoutfs.c dir7;					\
251.2Sagc	priv ${FANOUTOBJDIR}/${PROG} -f fan.conf /mnt;			\
261.1Sagc	sleep 1;							\
271.1Sagc	ls -la /mnt;							\
281.1Sagc	sleep 1;							\
291.1Sagc	priv pkill fanoutfs;						\
301.1Sagc	priv rm -rf dir? fan.conf
31

Indexes created Sat Nov 29 09:09:30 GMT 2025