diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,8 +1,9 @@ | |||
1 | GO_FILES := $(shell find . -name '*.go') | 1 | .PHONY: dns-service |
2 | 2 | dns-service: | |
3 | dns-service: main.go $(GO_FILES) | 3 | go generate ./... |
4 | CGO_ENABLED=0 go build -o $@ $< | 4 | CGO_ENABLED=0 go build -o $@ $< |
5 | 5 | ||
6 | .PHONY: clean | 6 | .PHONY: clean |
7 | clean: | 7 | clean: |
8 | rm -f dns-service | 8 | rm -f dns-service |
9 | find . -name 'zzz_*.go' -delete | ||