5ebec27ea221d0977816b84002c45074fbd62c20
[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} ${GCCDOCSUFFIX}
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 .if ${GCCDOCSUFFIX} == ""
34 INFO+=  ${ORIGINFO}
35 .endif
36
37 cpp.info: cpp.texi fdl.texi cppenv.texi cppopts.texi            \
38          gcc-common.texi gcc-vers.texi
39
40 gcc.info: gcc.texi gcc-common.texi gcc-vers.texi frontends.texi \
41          standards.texi invoke.texi extend.texi md.texi objc.texi       \
42          gcov.texi trouble.texi bugreport.texi service.texi             \
43          contribute.texi compat.texi funding.texi gnu.texi gpl_v3.texi  \
44          fdl.texi contrib.texi cppenv.texi cppopts.texi                 \
45          implement-c.texi implement-cxx.texi arm-neon-intrinsics.texi
46
47 gccint.info: gccint.texi gcc-common.texi gcc-vers.texi          \
48          contribute.texi makefile.texi configterms.texi options.texi    \
49          portability.texi interface.texi passes.texi rtl.texi md.texi   \
50          $(srcdir)/doc/tm.texi hostconfig.texi fragments.texi   \
51          configfiles.texi collect2.texi headerdirs.texi funding.texi    \
52          gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi      \
53          sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi   \
54          loop.texi generic.texi gimple.texi plugins.texi
55
56
57 cppinternals.info: cppinternals.texi gcc-common.texi gcc-vers.texi
58
59 gcc-vers.texi: Makefile ../Makefile.inc
60         (echo "@set version-GCC ${GCCCOMPLETEVER}"; \
61          echo "@clear DEVELOPMENT"; \
62         ) > $@T
63         echo "@set srcdir ${GCCDIR}/gcc" >> $@T
64         echo "@set VERSION_PACKAGE (DragonFly)" >> $@T
65         echo "@set BUGURL @uref{http://bugs.dragonflybsd.org}" >> $@T
66         mv -f $@T $@
67
68 CLEANFILES+=    gcc-vers.texi
69
70 .for inctexi in fdl.texi funding.texi gcc-common.texi gpl_v3.texi texinfo.texi
71 ${inctexi}: ${CONTRIBDIR}/include/${inctexi}
72         cp ${CONTRIBDIR}/include/${inctexi} ${.TARGET}
73 CLEANFILES+=    ${inctexi}
74 .endfor
75
76 .include <bsd.info.mk>