`# $Id: Makefile.host,v 1.7 2012/07/16 18:37:29 ksb Exp $ # master recipe for memstats 'changequote([,]) ]Q=' ]changequote(`,') `PROG= memstats BIN= ${DESTDIR}/usr/local/libexec DOC= ${DESTDIR}/usr/local/man SRCl= SRCs= memstats.pl MAN= OTHER= README SOURCE= Makefile ${OTHER} ${MAN} ${SRCl} ${SRCs} all: ${PROG} ${SOURCE} clean: FRC rm -f Makefile.bak ${PROG} a.out core errs lint.out tags deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} mkcat -r${DOC} -D ${MAN} depend: FRC dirs: ${BIN} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all dirs FRC -test -e ${BIN}/mem-stats && install -R ${BIN}/mem-stats install -c ${PROG} ${BIN}/${PROG} lint: FRC mkcat: ${MAN} ${DOC} FRC mkcat -r${DOC} ${MAN} print: source FRC lpr -J"${PROG} source" ${SOURCE} source: ${SOURCE} memstats: memstats.pl perl -p -e ${Q}if (! $$^V) { s#^(use\slib)(\s.*\$$\^V.*?\,)(\n)#$$1$$3#; }${Q} < memstats.pl > $@ perl -w -c $@ && chmod +x $@ spotless: clean rcsclean ${SOURCE} tags: FRC ${BIN}: install -dr $@ ${SOURCE}: co -q $@ FRC: 'dnl