Skip to content

Commit

Permalink
fixup makefile to only rebuild when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Dec 14, 2023
1 parent 14795ce commit a9c9f72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ fixup:
uni.md: uni.pl $(MDS)
./uni.pl SUMMARY.md >$@

pdf: uni.md
everything-curl.pdf: uni.md
pandoc -o everything-curl.pdf pdf.txt uni.md --toc

epub: uni.md
pdf: everything-curl.pdf

everything-curl.epub: uni.md
pandoc -o everything-curl.epub --epub-cover-image=cover.jpg epub.txt uni.md

epub: everything-curl.epub

clean:
rm -f uni.md everything-curl.pdf

0 comments on commit a9c9f72

Please sign in to comment.