dotfiles/sourcecode/Makefile

19 lines
248 B
Makefile

BUILD_DIR = ../script/.local/bin
GOSRC = $(wildcard *.go)
GOTARGET = $(GOSRC:%.go=$(BUILD_DIR)/%)
TARGETS = $(GOTARGET)
.PHONY: all go clean
all: go
go: $(GOTARGET)
$(BUILD_DIR)/%: %.go
go build -o $@ $<
clean:
rm -f $(TARGETS)