2012-08-26 01:08:08 +00:00
|
|
|
SOURCES := $(shell find src -name '*.go')
|
|
|
|
TARGETS := $(patsubst src/%.go,bin/%,$(SOURCES))
|
|
|
|
|
|
|
|
bin/%: src/%.go
|
2012-08-26 02:16:46 +00:00
|
|
|
go build -x -o $@ $^
|
2012-08-26 01:08:08 +00:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -v bin/*
|
|
|
|
|
|
|
|
.PHONY: all clean
|