aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-07 19:33:36 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-07 19:33:36 +0100
commit801b5207dcbf3438e7612e1f7edc9de32ce0780c (patch)
tree6f0454ec49bf769e361cfa393290efc68583ca67 /Makefile
parent8bddda344201d9f034b5e9c2e9c37a25caeb80cb (diff)
downloadgo-schwift-801b5207dcbf3438e7612e1f7edc9de32ce0780c.tar.gz
switch from reflection to code generation
This allows me to make the API much simpler. More simplification forthcoming in the following commit; I just want to make a cut since `make test` is happy right now.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 35b939b..e1d88d2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,18 @@
-all:
+help:
@echo 'Available targets:'
+ @echo ' make generate'
@echo ' make test'
+################################################################################
+
+generate: generated.go
+
+%: %.in | util/render_template.go
+ @echo ./util/render_template.go < $< > $@
+ @./util/render_template.go < $< > $@.new && mv $@.new $@ || (rm $@.new; false)
+
+################################################################################
+
test: static-tests cover.html
static-tests: FORCE