`# $Id: Makefile.host,v 1.5 2012/07/16 19:06:08 ksb Exp $ # platform recipe for searching through host ips 'changequote([,])dnl [Q='` ]changequote(`,') `PROG= daemonize MAIN= daemonize.pl DOC= daemonize.1 BIN= ${DESTDIR}/usr/local/sbin MAN= ${DESTDIR}/usr/local/man/man1 SOURCE= Makefile ${MAIN} ${REM} all: ${PROG} ${DOC} daemonize: daemonize.pl perl -p -e ${Q}if (! $$^V) { s#^(use\slib)(\s.*\$$\^V.*?\,)(\n)#$$1$$3#;}${Q} $@ chmod 755 $@ ${DOC}: ${PROG} pod2man daemonize.pl >$@ clean: FRC rm -f Makefile.bak ${GEN} ${LINK} *.o a.out core errs lint.out tags deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all FRC install -c -m755 ${MAIN} ${BIN}/${PROG} install -c -m644 ${DOC} ${MAN} print: source FRC txt2ps -m 0.65 -n -P${PROG} -l68 -w88 ${MAIN} ${REM}| lpr source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: ${HDR} ${SRC} ${GEN} ctags -t ${HDR} ${SRC} ${GEN} ${SOURCE}: co -q $@ FRC: 'dnl