From a08938fe16b8f9d79d4eaab92320ff42c7f6345b Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 10 Aug 2012 00:40:57 -0400 Subject: * splitting makefile targets for clean / dist-clean * adding a 'view' make target, and including console only logic :-) --- Makefile | 11 ++++++++--- 1 file 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 -- cgit v1.2.3