[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/02: [doc] fix non-portable syntax in the doc/me*.me targets
From: |
Ingo Schwarze |
Subject: |
[groff] 01/02: [doc] fix non-portable syntax in the doc/me*.me targets |
Date: |
Tue, 22 Mar 2022 11:02:13 -0400 (EDT) |
schwarze pushed a commit to branch master
in repository groff.
commit 32a04972ebe9bd06c6417bd68fed591c4ff792b9
Author: Ingo Schwarze <schwarze@openbsd.org>
AuthorDate: Tue Mar 22 15:44:10 2022 +0100
[doc] fix non-portable syntax in the doc/me*.me targets
POSIX does not define the meaning of $< in non-suffix rules, so use
the portable $? instead. This is adequate here because each of
these three rules has exactly one prerequisite.
OK gbranden@
---
ChangeLog | 7 +++++++
doc/doc.am | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 820e33cc..8ff83fb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-03-22 Ingo Schwarze <schwarze@openbsd.org>
+
+ * doc/doc.am: fix non-portable syntax in the doc/me*.me targets:
+ POSIX does not define the meaning of $< in non-suffix rules, so
+ use the portable $? instead. This is adequate here because each
+ of these three rules has exactly one prerequisite.
+
2022-03-22 Ingo Schwarze <schwarze@openbsd.org>
* doc/doc.am: fix non-portable syntax in the groff-man-pages.*
diff --git a/doc/doc.am b/doc/doc.am
index 0f4bfb9d..e3e48d16 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -242,15 +242,15 @@ doc/groff-man-pages.utf8.txt: $(GROFF_MAN_PAGES_ALL)
doc/meintro.me: $(doc_srcdir)/meintro.me.in
$(GROFF_V)$(MKDIR_P) `dirname $@` \
- && $(DOC_SED) $< >$@
+ && $(DOC_SED) $? >$@
doc/meintro_fr.me: $(doc_srcdir)/meintro_fr.me.in
$(GROFF_V)$(MKDIR_P) `dirname $@` \
- && $(DOC_SED) $< >$@
+ && $(DOC_SED) $? >$@
doc/meref.me: $(doc_srcdir)/meref.me.in
$(GROFF_V)$(MKDIR_P) `dirname $@` \
- && $(DOC_SED) $< >$@
+ && $(DOC_SED) $? >$@
# The me(7) intro French translation gets its own target rule because it
# needs the "-mfr" option.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/02: [doc] fix non-portable syntax in the doc/me*.me targets,
Ingo Schwarze <=