Whamcloud - gitweb
Fix up changebar generation--the order of the Makefile rules matters.
authorgord-fig <gord-fig>
Fri, 11 Oct 2002 18:23:35 +0000 (18:23 +0000)
committergord-fig <gord-fig>
Fri, 11 Oct 2002 18:23:35 +0000 (18:23 +0000)
lustre/doc/Makefile.am

index fd5a857..a780448 100644 (file)
@@ -87,13 +87,15 @@ chbar: lustre-chbar.pdf
 %-chbar.tex: chbar.sh postbar doc.old/%-full.tex %-full.tex
        $(SHELL) $(srcdir)/chbar.sh doc.old/$*-full.tex $*-full.tex | $(srcdir)/postbar > $@
 
-%-full.tex: %.tex
-       $(TEXEXPAND) -texinputs=. -texinputs=$(srcdir) -output=$@ $<
-
+# This rule needs to come before the next %-full.tex rule.
 doc.old/lustre.tex: doc.old/lustre-HOWTO.lyx
 doc.old/%-full.tex: doc.old/%.tex
        cd doc.old && $(TEXEXPAND) -texinputs=. -output=$*-full.tex $*.tex
 
+# This rule needs to come after the more specific doc.old rule.
+%-full.tex: %.tex
+       $(TEXEXPAND) -texinputs=. -texinputs=$(srcdir) -output=$@ $<
+
 # Check out the old directory if it doesn't exist.
 doc.old/lustre.lin doc.old/lustre-HOWTO.lin:
        @if test "X$(OLD)" = X; then \