summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2016-02-17 10:04:28 -0700
committerkballou <kballou@devnulllabs.io>2016-02-17 10:04:28 -0700
commitc04949bcab72836c70ce8fd9b1ccdfdc751f4744 (patch)
tree8692954945d9732bd4cc1380dffddfa4a55fc0cb /Makefile
parentb2a2859ed6a747c248c2e9dd1bb85200785ba154 (diff)
downloadgit-in-reverse-c04949bcab72836c70ce8fd9b1ccdfdc751f4744.tar.gz
git-in-reverse-c04949bcab72836c70ce8fd9b1ccdfdc751f4744.tar.xz
Refactor makefiles
* use more automatic variables * cleanup phony targets * remove `build` target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5dc95de..3770de2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
-all: build
-.PHONY: all
+.PHONY: all clean
-build: src/git-in-reverse.tex
- @make -C src/ build
- @cp src/git-in-reverse.pdf .
+all: git-in-reverse.pdf
+
+%.pdf: src/%.tex
+ @make -C src/ $@
+ @cp src/$@ .
clean:
@make -C src/ clean
- @rm -f git-in-reverse.pdf
+ @rm -f *.pdf