]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove GNU'ism in release notes Makefile (#1959)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 10 Dec 2024 08:40:39 +0000 (08:40 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 12 Dec 2024 08:45:24 +0000 (08:45 +0000)
Targets containing % wildcard is a GNU automake custom feature.

doc/release-notes/Makefile.am

index 8be79124db18642c31bcd4d7f1c947227159852a..170c7b500a4218999591c7c16fbb7a61a866bc18 100644 (file)
@@ -10,7 +10,9 @@ if ENABLE_RELEASE_DOCS
 
 DOC= release-$(SQUID_RELEASE)
 
-%.sgml: %.sgml.in
+SUFFIXES= .sgml.in .sgml
+
+.sgml.in.sgml:
        sed \
         -e "s%[@]SQUID_VERSION[@]%$(VERSION)%g" \
         -e "s%[@]SQUID_RELEASE[@]%$(SQUID_RELEASE)%g" \
@@ -18,18 +20,18 @@ DOC= release-$(SQUID_RELEASE)
         < $< >$@
        test `grep -c "@SQUID" $@` -eq 0
 
-%.txt: %.sgml
+.sgml.txt:
        linuxdoc -B txt --filter $<
 
-%.html: %.sgml
+.sgml.html:
        linuxdoc -B html -T 2 --split=0 $<
        perl -i -p -e "s%$@%%" $@
        cp -p $@ $(top_builddir)/RELEASENOTES.html
 
-%.man: %.sgml
+.sgml.man:
        linuxdoc -B txt --manpage $<
 
-%.info: %.sgml
+.sgml.info:
        linuxdoc -B info $<
 
 dist-hook: $(DOC).html