Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: avoid GNU make specific feature



$< is only portable when used in inference rules so we need to name the
input explicitly to be portable. See:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/_0024_003c-in-Ordinary-Make-Rules.html

Oliver

diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index a986aa1c5..d9eec58e8 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -121,13 +121,13 @@ zsh.pdf zsh_a4.pdf zsh_us.pdf: $(sdir)/zsh.texi
 intro.pdf intro.a4.pdf intro.us.pdf: $(sdir)/intro.ms
 	if test $@ = intro.us.pdf || \
 	  { test $@ = intro.pdf && test "$(PAPERSIZE)" = us; }; then \
-	  pdfroff -mspdf --no-kill-null-pages -P-pletter --pdf-output=$@ $<; \
+	  pdfroff -mspdf --no-kill-null-pages -P-pletter --pdf-output=$@ $(sdir)/intro.ms; \
 	else \
-	  pdfroff -mspdf --no-kill-null-pages -P-pa4 --pdf-output=$@ $<; \
+	  pdfroff -mspdf --no-kill-null-pages -P-pa4 --pdf-output=$@ $(sdir)/intro.ms; \
 	fi
 
 intro.html: $(sdir)/intro.ms
-	if groff -ms -Thtml -P-jintro $< > tmp.html; then \
+	if groff -ms -Thtml -P-jintro $(sdir)/intro.ms > tmp.html; then \
 	  mv tmp.html $@; \
 	else \
 	  rm -f tmp.html; false; \
diff --git a/Etc/Makefile.in b/Etc/Makefile.in
index 9adba95db..53729a0bc 100644
--- a/Etc/Makefile.in
+++ b/Etc/Makefile.in
@@ -43,10 +43,10 @@ INSTALL         = @INSTALL@
 all: FAQ FAQ.html
 
 FAQ: $(sdir)/FAQ.yo
-	$(YODL2TXT) -o FAQ.txt $< && mv FAQ.txt $@
+	$(YODL2TXT) -o FAQ.txt $(sdir)/FAQ.yo && mv FAQ.txt $@
 
 FAQ.html: $(sdir)/FAQ.yo
-	$(YODL2HTML) -o $@ $<
+	$(YODL2HTML) -o $@ $(sdir)/FAQ.yo
 
 # ========== DEPENDENCIES FOR CLEANUP ==========
 




Messages sorted by: Reverse Date, Date, Thread, Author