1 2 3 4 5 6 7 8 9 10 11 12
SHELL := /bin/bash TARGETS = magrefs magrefs-mem memkey .PHONY: all all: $(TARGETS) %: %.go go build -ldflags "-w -s" -o $@ $^ .PHONY: clean clean: rm -f $(TARGETS)