[gnome-libs] The FAQ Makefile


The Makefile for the GNOME-FAQ is buggy: it looks for gnome-faq/book1.html
which is never built (since it is now called index.html). This proposed
patch fixes this with a more general solution: stamp files.


ps. Havoc told me this should go to gnome-hackers, and that I should ask
Miguel to subscribe me. Miguel, would you please?

   .--= ULLA! =----------------------------.  finger cactus@cactus.rulez.org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus@cactus.rulez.org =--'
A szabadság az, ha azt teszed, amit szeretsz. A boldogság az, ha szereted, amit teszel.
Index: Makefile.am
RCS file: /cvs/gnome/gnome-libs/gnome-faq/Makefile.am,v
retrieving revision 1.8
diff -u -r1.8 Makefile.am
--- Makefile.am	1999/09/12 00:30:47	1.8
+++ Makefile.am	1999/10/09 19:43:51
@@ -40,13 +40,15 @@
 htmldir = $(prefix)/html
 #html_DATA = gnome-faq.html
+html_stamps	= .gnome-faq.html.stamp
-all-local: gnome-faq/book1.html
+all-local: $(html_stamps)
-gnome-faq/book1.html: gnome-faq.sgml
-	-(cd $(srcdir); db2html gnome-faq.sgml) > /dev/null
+.%.html.stamp: %.sgml
+	-(cd $(srcdir); db2html $<) > /dev/null
+	touch $@
-install-data-local: gnome-faq/book1.html
+install-data-local: $(html_stamps)
 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
 	installfiles=`echo $(srcdir)/gnome-faq/*.html`;			\
 	if test "$$installfiles" != '$(srcdir)/gnome-faq/*.html'; then	\

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