source: trunk/base/doc/Makefile @ 51231

Last change on this file since 51231 was 51147, checked in by jmr@…, 11 years ago

install .default versions of base config files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
RevLine 
[27887]1MAN1=           port.1
[26177]2MAN5=           macports.conf.5
[14018]3MAN7=           portfile.7 portstyle.7 porthier.7 portgroup.7
[2799]4INSTALLDIR=     ${DESTDIR}${prefix}
[2941]5TOPSRCDIR=      ..
[282]6
[14422]7ifneq ($(MAKECMDGOALS),distclean)
[26177]8include ../Mk/macports.autoconf.mk
[14422]9endif
[2770]10
[38101]11all: ${MAN1:.1=.1.gz} ${MAN5:.5=.5.gz} ${MAN7:.7=.7.gz}
[1222]12
[1224]13clean:
[35812]14        rm -f *.{1,5,7}.gz
[1224]15
[7620]16test:
17
[2770]18distclean: clean
[26177]19        rm -f prefix.mtree macports.conf macosx.mtree
[2770]20
[35812]21%.1.gz: %.1
22        gzip -c $^ > $@
23
24%.5.gz: %.5
25        gzip -c $^ > $@
26
27%.7.gz: %.7
28        gzip -c $^ > $@
29
[38101]30install: all
[9814]31        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
[26177]32        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${DESTDIR}${mpconfigdir}
[2770]33
[24398]34        cat prefix.mtree | $(MTREE) -U -e -p ${INSTALLDIR} > /dev/null
[5705]35        if test -L "${INSTALLDIR}/man" ; then \
36                rm -f "${INSTALLDIR}/man"; \
37        fi
[24366]38
[5705]39        if test ! -e "${INSTALLDIR}/man" ; then \
40                $(LN_S) share/man ${INSTALLDIR}/man; \
41        fi
[26177]42
[51147]43        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 macports.conf ${DESTDIR}${mpconfigdir}/macports.conf.default
[26177]44        if test ! -e ${DESTDIR}${mpconfigdir}/macports.conf ; then \
[588]45                set -x; \
[26177]46                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 macports.conf ${DESTDIR}${mpconfigdir}; \
[588]47        fi
[51147]48        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 sources.conf ${DESTDIR}${mpconfigdir}/sources.conf.default
[26177]49        if test ! -e ${DESTDIR}${mpconfigdir}/sources.conf ; then \
[685]50                set -x; \
[26177]51                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTDIR}${mpconfigdir}; \
[685]52        fi
[51147]53        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 variants.conf ${DESTDIR}${mpconfigdir}/variants.conf.default
[26177]54        if test ! -e ${DESTDIR}${mpconfigdir}/variants.conf ; then \
[10952]55                set -x; \
[26177]56                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 variants.conf ${DESTDIR}${mpconfigdir}; \
[10952]57        fi
[26177]58
[35812]59        # delete old uncompressed man pages if they exist
60        for m in ${MAN1}; do rm -f ${INSTALLDIR}/share/man/man1/$$m ; done
61        for m in ${MAN5}; do rm -f ${INSTALLDIR}/share/man/man5/$$m ; done
62        for m in ${MAN7}; do rm -f ${INSTALLDIR}/share/man/man7/$$m ; done
63
[42662]64        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}/share/macports/install
65        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${INSTALLDIR}/share/macports/install/
66        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 macosx.mtree ${INSTALLDIR}/share/macports/install/
[35812]67        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1.gz ${INSTALLDIR}/share/man/man1
68        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 macports.conf.5.gz ${INSTALLDIR}/share/man/man5
69        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7.gz ${INSTALLDIR}/share/man/man7
70        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7.gz ${INSTALLDIR}/share/man/man7
71        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 porthier.7.gz ${INSTALLDIR}/share/man/man7
72        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 portgroup.7.gz ${INSTALLDIR}/share/man/man7
Note: See TracBrowser for help on using the repository browser.