gcc4X man pages: Introduce generic MLINK handling
[dragonfly.git] / gnu / usr.bin / cc47 / doc / Makefile
1 .include "../Makefile.inc"
2
3 SRCDIR=         ${GCCDIR}/gcc/doc
4 CONTRIBDIR=     ${SRCDIR}
5
6 .PATH:  ${SRCDIR}
7
8 ORIGINFO=       cpp cppinternals gcc gccint
9
10 INFOSECTION=            "Programming & development tools."
11 INFOENTRY_cpp=          "* CPP.                                 The GNU C preprocessor."
12 INFOENTRY_cppinternals= "* CPP-internals.                       The GNU C preprocessor's internals."
13 INFOENTRY_gcc=          "* GCC.                                 The GNU Compiler Collection."
14 INFOENTRY_gcint=        "* GCC-internals.                       The GNU Compiler Collection's internals."
15
16 # Install as nameVER for the time being
17 .for _i in ${ORIGINFO}
18 .for docsfx in ${GCCSHORTVER}
19 .if empty(INFO:M${_i}${docsfx})
20 INFO+=  ${_i}${docsfx}
21 INFOENTRY_${_i}${docsfx}= ${INFOENTRY_${_i}:C/\./${docsfx}./1}
22
23 ${_i}${docsfx}.info: ${_i}.info
24         sed -E -e 's/[[:<:]]${_i}.info[[:>:]]/${_i}${docsfx}.info/g' \
25                 -e 's/\*([^.]*): \(${_i}\)\./*\1${docsfx}: (${_i}${docsfx})./g' \
26                 -e 's/\((gccint|cpp|gcc)\)/(\1${docsfx})/g' ${.ALLSRC} > ${.TARGET}
27
28 CLEANFILES+=    ${_i}${docsufx}.info
29 .endif
30 .endfor
31 .endfor
32 # End magic rewriting
33
34 cpp.info: cpp.texi fdl.texi cppenv.texi cppopts.texi            \
35          gcc-common.texi gcc-vers.texi
36
37 gcc.info: gcc.texi gcc-common.texi gcc-vers.texi frontends.texi \
38          standards.texi invoke.texi extend.texi md.texi objc.texi       \
39          gcov.texi trouble.texi bugreport.texi service.texi             \
40          contribute.texi compat.texi funding.texi gnu.texi gpl_v3.texi  \
41          fdl.texi contrib.texi cppenv.texi cppopts.texi                 \
42          implement-c.texi implement-cxx.texi arm-neon-intrinsics.texi
43
44 gccint.info: gccint.texi gcc-common.texi gcc-vers.texi          \
45          contribute.texi makefile.texi configterms.texi options.texi    \
46          portability.texi interface.texi passes.texi rtl.texi md.texi   \
47          $(srcdir)/doc/tm.texi hostconfig.texi fragments.texi   \
48          configfiles.texi collect2.texi headerdirs.texi funding.texi    \
49          gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi      \
50          sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi   \
51          loop.texi generic.texi gimple.texi plugins.texi
52
53
54 cppinternals.info: cppinternals.texi gcc-common.texi gcc-vers.texi
55
56 gcc-vers.texi: Makefile ../Makefile.inc
57         (echo "@set version-GCC ${GCCCOMPLETEVER}"; \
58          echo "@clear DEVELOPMENT"; \
59         ) > $@T
60         echo "@set srcdir ${GCCDIR}/gcc" >> $@T
61         echo "@set VERSION_PACKAGE (DragonFly)" >> $@T
62         echo "@set BUGURL @uref{http://bugs.dragonflybsd.org}" >> $@T
63         mv -f $@T $@
64
65 CLEANFILES+=    gcc-vers.texi
66
67 .for inctexi in fdl.texi funding.texi gcc-common.texi gpl_v3.texi texinfo.texi
68 ${inctexi}: ${CONTRIBDIR}/include/${inctexi}
69         cp ${CONTRIBDIR}/include/${inctexi} ${.TARGET}
70 CLEANFILES+=    ${inctexi}
71 .endfor
72
73 .include <bsd.info.mk>