`# $Id: Makefile.host,v 1.13 2012/07/16 18:59:38 ksb Exp $ # platform recipe for searching through host ips 'changequote([,])dnl [Q=' ]changequote(`,') `BIN=${DESTDIR}/usr/local/bin PROG= haveip MAIN= haveip.pl README= README OTHER= IO-Interface-1.03.tar.gz haveip.man sol10.patch sol8.patch SOURCE= Makefile ${OTHER} ${MAIN} ${REM} INTMOD=IO-Interface-1.03 all: ${PROG} haveip: haveip.pl perl -p -e ${Q}if (! $$^V) { s#^(use\slib)(\s.*\$$\^V.*?\,)(\n)#$$1$$3#;}${Q} $@ perl -w ./$@ 127.0.0.1 clean: FRC rm -f Makefile.bak ${GEN} ${LINK} *.o a.out core errs lint.out tags rm -rf ${INTMOD} calls: ${SRC} ${HDR} ${GEN} FRC calls ${CDEFS} ${INCLUDE} ${DEP} deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} mkcat -r${DOC} -D ${MAN} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all FRC 'ifelse(HOSTTYPE,HPUX11,`', ` -perl -e "use IO::Interface::Simple;" 2>/dev/null || make setup ')dnl `install -c -m755 ${MAIN} ${BIN}/${PROG} setup: ${INTMOD}.tar.gz FRC gzip -cd ${INTMOD}.tar.gz | tar -xf - cd ${INTMOD} && 'ifelse( HOSTTYPE,SUN5,``if /usr/bin/perl -V | grep "cc=[^g]cc.," >/dev/null 2>&1 && [ -x /opt/SUNWspro/bin/cc ]; then perl Makefile.PL CC=/opt/SUNWspro/bin/cc all ; else perl Makefile.PL; fi'',`perl Makefile.PL')` && make all && make install mkcat: ${MAN} ${DOC} FRC mkcat -r${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