source: trunk/base/doc/Makefile @ 19325

Last change on this file since 19325 was 15506, checked in by jberry, 15 years ago

Merge to HEAD changes between tags release_1_2-bp and release_1_2_0 on
release_1_2 branch. This should incorporate all changes that were made
on the 1.2 branch between the time it branched from HEAD, and the time
1.2 was tagged.

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1MAN5=           ports.conf.5
2MAN7=           portfile.7 portstyle.7 porthier.7 portgroup.7
3INSTALLDIR=     ${DESTDIR}${prefix}
4TOPSRCDIR=      ..
5
6ifneq ($(MAKECMDGOALS),distclean)
7include ../Mk/dports.autoconf.mk
8endif
9
10all:
11
12clean:
13
14test:
15
16distclean: clean
17        rm -f prefix.mtree ports.conf macosx.mtree
18
19install:
20        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
21        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${DESTDIR}${portconfigdir}
22
23        cat prefix.mtree | $(MTREE) -U -e -p ${INSTALLDIR} > /dev/null
24        if test -L "${INSTALLDIR}/man" ; then \
25                rm -f "${INSTALLDIR}/man"; \
26        fi
27       
28        if test ! -e "${INSTALLDIR}/man" ; then \
29                $(LN_S) share/man ${INSTALLDIR}/man; \
30        fi
31       
32        # Install the ports.conf file. If it's already installed, upgrade it
33        if test ! -e ${DESTDIR}/${portconfigdir}/ports.conf ; then \
34                set -x; \
35                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${DESTDIR}${portconfigdir}; \
36        else \
37                sed -e s/rsync.opendarwin.org/rsync.darwinports.org/ ${DESTDIR}${portconfigdir}/ports.conf > ${DESTDIR}${portconfigdir}/ports.conf.tmp && \
38                        mv ${DESTDIR}${portconfigdir}/ports.conf.tmp ${DESTDIR}${portconfigdir}/ports.conf; \
39        fi
40
41        # Install the sources.conf file. If it's already installed, upgrade it
42        if test ! -e ${DESTDIR}${portconfigdir}/sources.conf ; then \
43                set -x; \
44                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTDIR}${portconfigdir}; \
45        else \
46                sed -e s/rsync.opendarwin.org/rsync.darwinports.org/ ${DESTDIR}${portconfigdir}/sources.conf > ${DESTDIR}${portconfigdir}/sources.conf.tmp && \
47                        mv ${DESTDIR}${portconfigdir}/sources.conf.tmp ${DESTDIR}${portconfigdir}/sources.conf; \
48        fi
49       
50        $(SILENT)if test ! -e ${DESTDIR}${portconfigdir}/variants.conf ; then \
51                set -x; \
52                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 variants.conf ${DESTDIR}${portconfigdir}; \
53        fi
54        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${portconfigdir}
55        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}/share/darwinports/resources/port1.0/install
56        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
57        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 macosx.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
58        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 ports.conf.5 ${INSTALLDIR}/share/man/man5
59        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${INSTALLDIR}/share/man/man7
60        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${INSTALLDIR}/share/man/man7
61        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 porthier.7 ${INSTALLDIR}/share/man/man7
62        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 portgroup.7 ${INSTALLDIR}/share/man/man7
Note: See TracBrowser for help on using the repository browser.