Skip to content

Commit

Permalink
Remove GNU'ism in release notes Makefile (#1959)
Browse files Browse the repository at this point in the history
Targets containing % wildcard is a GNU automake custom feature.
  • Loading branch information
yadij authored and kinkie committed Dec 13, 2024
1 parent 50b8a28 commit 1d33b78
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/release-notes/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,28 @@ 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" \
-e "s%[@]SQUID_RELEASE_OLD[@]%$$(( $(SQUID_RELEASE) - 1 ))%g" \
< $< >$@
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
Expand Down

0 comments on commit 1d33b78

Please sign in to comment.