Recording some of my work as I go through the go-tour
This commit is contained in:
12
gotime/Makefile
Normal file
12
gotime/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
SOURCES := $(shell find src -name '*.go')
|
||||
TARGETS := $(patsubst src/%.go,bin/%,$(SOURCES))
|
||||
|
||||
bin/%: src/%.go
|
||||
go build -o $@ $^
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
clean:
|
||||
rm -v bin/*
|
||||
|
||||
.PHONY: all clean
|
Reference in New Issue
Block a user