aboutsummaryrefslogtreecommitdiff
path: root/go/Makefile
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-10-04 18:34:26 -0500
committerJoel Martin <github@martintribe.org>2014-10-04 18:34:26 -0500
commit69b4abd6efc7c65e59f73158ca93f4aa9b73116d (patch)
tree5ca4e17a98bd9c82618db2981c779e8097d7a17e /go/Makefile
parent3b655472663583c58a6a6e113fb6cc5384ad7e50 (diff)
downloadmal-69b4abd6efc7c65e59f73158ca93f4aa9b73116d.tar.gz
mal-69b4abd6efc7c65e59f73158ca93f4aa9b73116d.zip
go: step0_repl
Diffstat (limited to 'go/Makefile')
-rw-r--r--go/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/go/Makefile b/go/Makefile
new file mode 100644
index 0000000..85719bf
--- /dev/null
+++ b/go/Makefile
@@ -0,0 +1,31 @@
+#####################
+
+SOURCES_BASE =
+SOURCES_LISP = step0_repl.go
+SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
+
+
+#####################
+
+SRCS = step0_repl.go
+BINS = $(SRCS:%.go=%)
+
+#####################
+
+all: $(BINS) mal
+
+mal: $(word $(words $(BINS)),$(BINS))
+ cp $< $@
+
+$(BINS): %: %.go
+ go build -o $@ $+
+
+clean:
+ rm -f $(BINS) mal
+
+.PHONY: stats stats-lisp
+
+stats: $(SOURCES)
+ @wc $^
+stats-lisp: $(SOURCES_LISP)
+ @wc $^