summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2012-08-10 00:40:57 -0400
committerVincent Batts <vbatts@hashbangbash.com>2012-08-10 00:40:57 -0400
commita08938fe16b8f9d79d4eaab92320ff42c7f6345b (patch)
treef6f53d7d0b62d88d7f29c5972abea964efaf763d /Makefile
parent5e207f6bb166b5688f881a5f0178211aaf38c20c (diff)
downloadslackbook-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--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3905eb0..6447a6f 100644
--- a/Makefile
+++ b/Makefile
@@ -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