aboutsummaryrefslogtreecommitdiffstats
path: root/extra/mag/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mag/Makefile')
-rw-r--r--extra/mag/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/extra/mag/Makefile b/extra/mag/Makefile
index 6a19455..f3698dd 100644
--- a/extra/mag/Makefile
+++ b/extra/mag/Makefile
@@ -1,8 +1,12 @@
SHELL := /bin/bash
+TARGETS = magrefs magrefs-mem memkey
-magrefs: magrefs.go
+.PHONY: all
+all: $(TARGETS)
+
+%: %.go
go build -ldflags "-w -s" -o $@ $^
.PHONY: clean
clean:
- rm -f magrefs
+ rm -f $(TARGETS)