]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Docs: fix automake -j on release notes
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 Aug 2015 10:47:14 +0000 (03:47 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 Aug 2015 10:47:14 +0000 (03:47 -0700)
doc/release-notes/Makefile.am

index 32b572e8fd6d02f11fbc53830fc9181d8ee833d5..ed82ffc25cbb3b5e8bc0d8d965cb3db7e122aa62 100644 (file)
@@ -10,7 +10,7 @@ if ENABLE_RELEASE_DOCS
 
 DOC= release-4
 
-$(DOC).ps: $(DOC).sgml
+%.ps: %.sgml
        linuxdoc -B latex -o ps $(DOC)
 
 #$(DOC).dvi: $(DOC).tex
@@ -25,12 +25,17 @@ $(DOC).ps: $(DOC).sgml
 %.html: %.sgml
        linuxdoc -B html -T 2 --split=0 $<
        perl -i -p -e "s%$@%%" $@
-       cp -p $(DOC).html $(top_builddir)/RELEASENOTES.html
+       cp -p $< $(top_builddir)/RELEASENOTES.html
 
 %.man: %.sgml
        linuxdoc -B txt -T 2 -m $(DOC)
 
-EXTRA_DIST= $(DOC).html $(top_builddir)/RELEASENOTES.html
+dist-hook: $(DOC).html
+       @if test -f $(builddir)/$(DOC).html; then \
+         cp -p $(builddir)/$(DOC).html $(top_distdir)/RELEASENOTES.html; \
+       fi
+
+EXTRA_DIST= $(DOC).html
 
 CLEANFILES= \
        *.html \