`# $Id: Makefile.host,v 2.5 2010/12/06 18:40:04 ksb Exp $ # platform recipe for unixstats, msrc 2008 'changequote([,])dnl [Q=' ]changequote(`,')dnl `PROG= unixstats BIN= ${DESTDIR}/usr/local/libexec LIB= ${DESTDIR}/usr/local/lib DOC= ${DESTDIR}/usr/local/man INCLUDE= DEBUG= CDEFS= -D'HOSTTYPE` -DHOSTOS='HOSTOS`'ifelse( HOSTTYPE,`HPUX11',` -DUSE_STDARG')` HDR= machine.h SRCl= SRCs= 'ifelse(HOSTTYPE,`HPUX11',`unixstats-HPUX11.m',`unixstats.pl')` MAN= OTHER= README FEDEX INSTALL TODO peg.xml unix.cvu sample.init stats.SCO \ unixstats-HPUX11.m unixstats-unknown' dnl ifelse(HOSTTYPE,`HPUX11',`unixstats.pl',`unixstats-HPUX11.m')` SOURCE= Makefile ITO.spec ${OTHER} ${MAN} ${SRCl} ${SRCs} ${HDR} all: ${PROG} clean: FRC rm -f Makefile.bak ${PROG} prog.[cho] a.out core errs lint.out tags 'ifelse(HOSTTYPE,`HPUX11', `unixstats.m: unixstats-HPUX11.m cp unixstats-HPUX11.m $@ unixstats: unixstats.m mkcmd -I "/usr/src/local/bin/rrdup:$$HOME/lib/mkcmd:$$HOME/lib/mkcmd/type" unixstats.m'ifelse(HOSTTYPE,`HPUX11',`` && perl -pi -e "s/UL,/,/" prog.c'')` ${CC} ${CDEFS} -o $@ 'ifelse(HOSTTYPE,`HPUX11',`ifelse(HOSTOS,`111100',`-DUSE_STDARGS ')')`prog.c', ``unixstats: unixstats.pl perl -p -e ${Q}if (! $$^V) { s#^(use\slib)(\s.*\$$\^V.*?\,)(\n)#$$1$$3#; }${Q} $@ perl -w -c $@ && chmod +x $@ '')` deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} mkcat -r${DOC} -D ${MAN} depend: FRC dirs: ${BIN} ${LIB} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all dirs FRC 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} spotless: clean rcsclean ${SOURCE} tags: FRC ${BIN} ${LIB}: install -dr $@ ${SOURCE}: co -q $@ FRC: # DO NOT DELETE this line, maketd depends on it prog.o: prog.c prog.h 'dnl