source: trunk/base/doc/Makefile @ 79661

Last change on this file since 79661 was 79241, checked in by jmr@…, 9 years ago

separate dirs used only by base into another mtree file, so ports that install files there will trigger the warning

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