[PATCH 6/6] fix building docs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Removing wrong $(srcdir).
  Improve prerequisites to include the scripts while at it.

Signed-off-by: aldot <rep.dot.nop@xxxxxxxxx>
---
 doc/Makefile.in |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/doc/Makefile.in b/doc/Makefile.in
index 709fa6d..3ef6bc3 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -26,20 +26,22 @@
 
 SHELL = /bin/sh
 srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+builddir = @builddir@
 top_builddir = ..
 
 include $(top_builddir)/Makefile.include
 
 MANPAGES = gpm.8 mev.1 gpm-root.1 gpm-types.7 mouse-test.1
 
-all: $(srcdir)/gpm.info gpm.man
+all: gpm.info gpm.man
 
 # HTML (texi2html)
 %.html: %.texinfo
 	if [ $(TEXI2HTML) != "no" ]; then $(TEXI2HTML) -monolithic $< ;fi
 
 # TEXINFO (-)
-%.texinfo: doc.% Makefile
+%.texinfo: doc.% Makefile $(srcdir)/infofilter
 	@rm -f $@ # correct here ?
 	$(SED) -f $(srcdir)/infofilter $< > $@
 	chmod 400 $@
@@ -53,13 +55,13 @@ all: $(srcdir)/gpm.info gpm.man
 	if [ "$(MAKEINFO)" != "no" ]; then $(MAKEINFO) --no-split $< -o $@; fi
 
 # TXT (-)
-%.txt: %.info
+%.txt: %.info $(srcdir)/mktxt
 	$(AWK) -f $(srcdir)/mktxt $< > $@
 
 # MAN (-)
 $(MANPAGES): gpm.man
 gpm.man: doc.gpm $(srcdir)/manpager
-	$(AWK) -f $(srcdir)/manpager doc.gpm
+	$(AWK) -f $(srcdir)/manpager $<
 	for i in gpm-root.1 gpm-types.7 gpm.8 mev.1 mouse-test.1; do \
 		expand $$i | sed s/^'[ ]*'//g > $$i.new; \
 		mv $$i.new $$i; \
@@ -99,10 +101,6 @@ gpm.man: doc.gpm $(srcdir)/manpager
 		fi; \
 	fi
 
-# Main portion
-
-all: $(srcdir)/gpm.info $(MANPAGES)
-
 # why gpmdoc.ps and gpm.ps??
 # there is no gpm.ps in my tree and no rule to generate gpm.ps.
 gpmdoc.ps:	gpm.ps
-- 
1.5.5

_______________________________________________
gpm mailing list
gpm@xxxxxxxxxxxxxx
http://lists.linux.it/listinfo/gpm

[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]