MAN1= port.1 INSTALLDIR= ${DESTDIR}${prefix} TOPSRCDIR= ../.. SCRIPTS= portindex port edit = sed \ -e 's,@TCLSH\@,$(TCLSH),g' \ -e 's,@TCL_PACKAGE_DIR\@,$(TCL_PACKAGE_DIR),g' include ../../Mk/dports.autoconf.mk all: ${SCRIPTS} portindex: portindex.tcl ${edit} portindex.tcl > $@ port: port.tcl ${edit} port.tcl > $@ mkdirs: cat ../../doc/prefix.mtree | $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null clean: rm -f ${SCRIPTS} test: distclean: clean install: mkdirs $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1 ${INSTALLDIR}/share/man/man1 $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}/bin $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 555 port portindex ${INSTALLDIR}/bin/ $(LN_S) -f ${INSTALLDIR}/bin/port ${INSTALLDIR}/bin/portf