Skip to content

Commit

Permalink
chore: add early exit call if asciidoctor fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaschen committed Dec 8, 2016
1 parent 9ecddd0 commit 7ffe8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
docs: docs/phpgeo.html apidocs

docs/phpgeo.html: docs/phpgeo.adoc docs/piwik.html
asciidoctor $<
asciidoctor $< || { rm $@ ; exit 1 ; }
awk '/<\/body>/ { system("cat docs/piwik.html") }; {print} ' $@ > $@.tmp
mv $@.tmp $@

Expand Down

0 comments on commit 7ffe8e3

Please sign in to comment.