]> 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)
committerFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Fri, 13 Dec 2024 08:09:33 +0000 (08:09 +0000)
Targets containing % wildcard is a GNU automake custom feature.

doc/release-notes/Makefile.am

index 2cb9e52d377c24ca18da9ca21b33bbb37be8c73e..41125b8aa77570db66f88f027b2a50f09dda3edc 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