srcdir = @srcdir@ VPATH = @srcdir@ include ../../Mk/macports.autoconf.mk INSTALLDIR= ${DESTDIR}${prefix} TOPSRCDIR= ../.. SCRIPTS= portmirror portindex port edit = sed -e 's,@TCLSH\@,$(TCLSH),g' .PHONY: mkdirs all: ${SCRIPTS} portmirror: portmirror.tcl ../../Mk/macports.autoconf.mk ${edit} $(srcdir)/portmirror.tcl > $@ portindex: portindex.tcl ../../Mk/macports.autoconf.mk ${edit} $(srcdir)/portindex.tcl > $@ port: port.tcl ../../Mk/macports.autoconf.mk ${edit} $(srcdir)/port.tcl > $@ mkdirs: < ../../doc/prefix.mtree $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null < ../../doc/base.mtree $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null clean: rm -f ${SCRIPTS} test: distclean: clean rm -f Makefile install: all mkdirs $(INSTALL) -d -o "${DSTUSR}" -g "${DSTGRP}" -m "${DSTMODE}" "${INSTALLDIR}/bin" $(INSTALL) -d -o "${DSTUSR}" -g "${DSTGRP}" -m "${DSTMODE}" "${INSTALLDIR}/var/macports" $(INSTALL) -o "${DSTUSR}" -g "${DSTGRP}" -m 555 port portindex portmirror "${INSTALLDIR}/bin/" cd "${INSTALLDIR}/bin" && $(LN_S) -f port portf cd "${INSTALLDIR}/bin" && $(LN_S) -f "${TCLSH}" port-tclsh ifneq (,$(findstring darwin,@build_os@)) ifneq (8,@OS_MAJOR@) chmod -h 555 "${INSTALLDIR}/bin/portf" "${INSTALLDIR}/bin/port-tclsh" endif endif