source: trunk/base/src/port/Makefile @ 19766

Last change on this file since 19766 was 19766, checked in by jberry@…, 14 years ago

Make the portf symlink truly relative, to solve problem in which pax refuses to archive it because it points outside of tree.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 839 bytes
Line 
1MAN1=           port.1
2INSTALLDIR=     ${DESTDIR}${prefix}
3TOPSRCDIR=      ../..
4SCRIPTS=        portmirror portindex port
5
6edit = sed \
7        -e 's,@TCLSH\@,$(TCLSH),g' \
8        -e 's,@TCL_PACKAGE_DIR\@,$(TCL_PACKAGE_DIR),g'
9
10include ../../Mk/dports.autoconf.mk
11
12all: ${SCRIPTS}
13
14portmirror: portmirror.tcl
15        ${edit} portmirror.tcl > $@
16
17portindex: portindex.tcl
18        ${edit} portindex.tcl > $@
19
20port: port.tcl
21        ${edit} port.tcl > $@
22
23mkdirs:
24        cat ../../doc/prefix.mtree | $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null
25
26clean:
27        rm -f ${SCRIPTS}
28
29test:
30
31distclean: clean
32
33install: mkdirs
34        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1 ${INSTALLDIR}/share/man/man1
35        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}/bin
36        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 555 port portindex portmirror ${INSTALLDIR}/bin/
37        cd ${INSTALLDIR}/bin && $(LN_S) -f port portf
Note: See TracBrowser for help on using the repository browser.