This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Looking at the end of PR10996 [1/4] (man7 Makefile.in changes)


The *.7 man pages (which include the GNU licenses) no longer are being
generated.  This is due to attempting to use a generic makefile rule.
Unfortunately, the file comes from $(docdir)/include not $(docdir), so
the rule is wrong to start with.  Furthermore only one of the three .7
files creates the same named man page as the source .texi file.

So I broke out the rule into three parts.

Bootstrapped i686-pc-cygwin (all languages, except ada)
Also tested by deleting the doc directory and make generated-manpages as
well as make install-man.

OK to install?





2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in ($(docobjdir)/%.7): Delete generic rule and copy to ...
	($(docobjdir)/gfdl.7): ... here and ...
	($(docobjdir)/gpl.7): ... here and ...
	($(docobjdir)/fsf-funding.7): here.

--- Makefile.in.2	2003-10-21 16:33:43.890491200 -0400
+++ Makefile.in	2003-10-21 16:36:53.132608000 -0400
@@ -2676,24 +2676,38 @@ generated-manpages:: stmp-docobjdir $(do
 $(docobjdir)/gcov.1: $(docdir)/gcov.texi
 $(docobjdir)/cpp.1: $(docdir)/cpp.texi $(docdir)/cppenv.texi \
   $(docdir)/cppopts.texi
 $(docobjdir)/gcc.1: $(docdir)/invoke.texi $(docdir)/cppenv.texi \
   $(docdir)/cppopts.texi
-$(docobjdir)/gfdl.7: $(docdir)/include/fdl.texi
-$(docobjdir)/gpl.7: $(docdir)/include/gpl.texi
-$(docobjdir)/fsf-funding.7: $(docdir)/include/funding.texi
-
 $(docobjdir)/%.1: $(docdir)/%.texi
 	$(STAMP) $@
 	-$(TEXI2POD) $< > $(basename $(notdir $@)).pod
 	-($(POD2MAN) --section=1 \
 			$(basename $(notdir $@)).pod > $(@).T$$$$ && \
 		mv -f $(@).T$$$$ $@) || \
 		(rm -f $(@).T$$$$ && exit 1)
 	-rm -f $(basename $(notdir $@)).pod
 
-$(docobjdir)/%.7: $(docdir)/%.texi
+$(docobjdir)/gfdl.7: $(docdir)/include/fdl.texi
+	$(STAMP) $@
+	-$(TEXI2POD) $< > $(basename $(notdir $@)).pod
+	-($(POD2MAN) --section=7 \
+			$(basename $(notdir $@)).pod > $(@).T$$$$ && \
+		mv -f $(@).T$$$$ $@) || \
+		(rm -f $(@).T$$$$ && exit 1)
+	-rm -f $(basename $(notdir $@)).pod
+
+$(docobjdir)/gpl.7: $(docdir)/include/gpl.texi
+	$(STAMP) $@
+	-$(TEXI2POD) $< > $(basename $(notdir $@)).pod
+	-($(POD2MAN) --section=7 \
+			$(basename $(notdir $@)).pod > $(@).T$$$$ && \
+		mv -f $(@).T$$$$ $@) || \
+		(rm -f $(@).T$$$$ && exit 1)
+	-rm -f $(basename $(notdir $@)).pod
+
+$(docobjdir)/fsf-funding.7: $(docdir)/include/funding.texi
 	$(STAMP) $@
 	-$(TEXI2POD) $< > $(basename $(notdir $@)).pod
 	-($(POD2MAN) --section=7 \
 			$(basename $(notdir $@)).pod > $(@).T$$$$ && \
 		mv -f $(@).T$$$$ $@) || \



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]