From 69b4abd6efc7c65e59f73158ca93f4aa9b73116d Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 4 Oct 2014 18:34:26 -0500 Subject: go: step0_repl --- go/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 go/Makefile (limited to 'go/Makefile') 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 $^ -- cgit v1.2.3