source: trunk/base/doc/Makefile @ 1225

Last change on this file since 1225 was 1225, checked in by landonf (Landon Fuller), 18 years ago

Fix the call to mtree at build time

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