source: branches/gsoc11-statistics/base/doc/Makefile @ 79661

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

remove useless uses of cat

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