gcc4X man pages: Introduce generic MLINK handling
[dragonfly.git] / gnu / usr.bin / cc47 / doc / Makefile
CommitLineData
b450dd39
JM
1.include "../Makefile.inc"
2
3SRCDIR= ${GCCDIR}/gcc/doc
4CONTRIBDIR= ${SRCDIR}
5
6.PATH: ${SRCDIR}
7
8ORIGINFO= cpp cppinternals gcc gccint
9
10INFOSECTION= "Programming & development tools."
11INFOENTRY_cpp= "* CPP. The GNU C preprocessor."
12INFOENTRY_cppinternals= "* CPP-internals. The GNU C preprocessor's internals."
13INFOENTRY_gcc= "* GCC. The GNU Compiler Collection."
14INFOENTRY_gcint= "* GCC-internals. The GNU Compiler Collection's internals."
15
16# Install as nameVER for the time being
17.for _i in ${ORIGINFO}
38fdaecd 18.for docsfx in ${GCCSHORTVER}
b450dd39
JM
19.if empty(INFO:M${_i}${docsfx})
20INFO+= ${_i}${docsfx}
21INFOENTRY_${_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
28CLEANFILES+= ${_i}${docsufx}.info
29.endif
30.endfor
31.endfor
32# End magic rewriting
b450dd39
JM
33
34cpp.info: cpp.texi fdl.texi cppenv.texi cppopts.texi \
35 gcc-common.texi gcc-vers.texi
36
37gcc.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
44gccint.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
54cppinternals.info: cppinternals.texi gcc-common.texi gcc-vers.texi
55
56gcc-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
65CLEANFILES+= 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}
70CLEANFILES+= ${inctexi}
71.endfor
72
73.include <bsd.info.mk>