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

Last change on this file since 971 was 971, checked in by kevin, 18 years ago

Allow optional DSTUSR and DSTGRP variables for choosing an install user/group.

  • Property svn:eol-style set to native
File size: 540 bytes
Line 
1PREFIX?=        /opt/local
2MAN1=           port.1
3DSTUSR?=        root
4DSTGRP?=        wheel
5
6port.1.gz: port.1
7        gzip -cn port.1 > port.1.gz
8
9all: port.1.gz
10
11clean:
12        rm -f port.1.gz
13
14mkdirs:
15        mkdir -p ${PREFIX}/bin
16        mkdir -p ${PREFIX}/man/man1
17
18install: mkdirs
19        install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1.gz ${PREFIX}/man/man1
20        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 port.tcl ${PREFIX}/bin/port
21        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${PREFIX}/bin/portall
22        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${PREFIX}/bin/portindex
Note: See TracBrowser for help on using the repository browser.