diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2012-08-10 00:40:57 -0400 |
---|---|---|
committer | Vincent Batts <vbatts@hashbangbash.com> | 2012-08-10 00:40:57 -0400 |
commit | a08938fe16b8f9d79d4eaab92320ff42c7f6345b (patch) | |
tree | f6f53d7d0b62d88d7f29c5972abea964efaf763d /Makefile | |
parent | 5e207f6bb166b5688f881a5f0178211aaf38c20c (diff) | |
download | slackbook-a08938fe16b8f9d79d4eaab92320ff42c7f6345b.tar.xz |
* splitting makefile targets for clean / dist-clean
* adding a 'view' make target, and including console only logic :-)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -38,7 +38,10 @@ view.pdf: book.pdf xdg-open $< view.html: book.html - xdg-open $< + xdg-open $< || links $< + +.PHONY: view +view: view.html .convert: @which convert 2>/dev/null >/dev/null || echo "ERROR: 'convert' REQUIRED, this is in imagemagick" && touch $@ @@ -63,8 +66,10 @@ view.html: book.html .clean.images: rm -fr png/ -.PHONY: clean -clean: .clean.pdf .clean.html .clean.images .clean.stuff +.PHONY: dist-clean clean +dist-clean: clean .clean.images .clean.stuff + +clean: .clean.pdf .clean.html .DEFAULT_GOAL := book.html |