source: trunk/base/doc/Makefile @ 2074

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

Apply sed rules to prefix.mtree.pre > prefix.mtree, then install.
Added macosx.mtree

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1MAN7=           portfile.7 portstyle.7
2INSTALLDIR=     ${DESTDIR}${PREFIX}
3
4all:
5
6clean:
7
8install:
9        mkdir -p ${DESTDIR}${ETCDIR}
10        mkdir -p ${INSTALLDIR}
11       
12        cat prefix.mtree.pre | sed -e "s/uname=UNAME/uname=${DSTUSR}/" | \
13        sed -e "s/gname=GNAME/gname=${DSTGRP}/" > prefix.mtree
14        cat prefix.mtree | mtree -U -d -e -p ${INSTALLDIR} > /dev/null
15        @if [ ! -e ${DESTDIR}/${ETCDIR}/ports.conf ]; then \
16                set -x; \
17                install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${DESTDIR}${ETCDIR}; \
18        fi
19
20        @if [ ! -e ${DESTDIR}${ETCDIR}/sources.conf ]; then \
21                set -x; \
22                install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTDIR}${ETCDIR}; \
23        fi
24        install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${ETCDIR}
25        install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
26        install -o ${DSTUSR} -g ${DSTGRP} -m 644 macosx.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
27        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${INSTALLDIR}/man/man7
28        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${INSTALLDIR}/man/man7
29
30include ../Mk/dports.mk
Note: See TracBrowser for help on using the repository browser.