source: trunk/base/doc/Makefile @ 1034

Last change on this file since 1034 was 1034, checked in by eric, 18 years ago

Add a style guide for ports.

  • Property svn:eol-style set to native
File size: 887 bytes
Line 
1PREFIX?=        /opt/local
2ETCDIR=         /etc/ports
3MAN7=           portfile.7 portstyle.7
4DSTUSR?=        root
5DSTGRP?=        wheel
6
7all: portfile.7.gz portstyle.7.gz
8
9portfile.7.gz: portfile.7
10        gzip -cn portfile.7 > portfile.7.gz
11
12portstyle.7.gz: portstyle.7
13        gzip -cn portstyle.7 > portstyle.7.gz
14
15clean:
16        rm -f portfile.7.gz portstyle.7.gz
17install:
18        mkdir -p /etc/defaults
19        mkdir -p ${ETCDIR}
20        mkdir -p ${PREFIX}/man/man7
21        @if [ ! -e ${ETCDIR}/ports.conf ]; then \
22                set -x; \
23                install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${ETCDIR}; \
24        fi
25
26        @if [ ! -e ${ETCDIR}/sources.conf ]; then \
27                set -x; \
28                install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${ETCDIR}; \
29        fi
30
31        install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf.default /etc/defaults/ports.conf
32        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7.gz ${PREFIX}/man/man7
33        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7.gz ${PREFIX}/man/man7
Note: See TracBrowser for help on using the repository browser.