gowebdav/Makefile

18 lines
209 B
Makefile
Raw Normal View History

2018-05-16 12:23:42 +02:00
BIN := gowebdav
SRC := $(wildcard *.go) cmd/gowebdav/main.go
2014-10-23 10:39:47 +02:00
2018-05-16 12:23:42 +02:00
all: test cmd
2014-10-23 10:39:47 +02:00
2018-05-16 12:23:42 +02:00
cmd: ${BIN}
2014-10-23 10:39:47 +02:00
2018-05-16 12:23:42 +02:00
${BIN}: ${SRC}
go build -o $@ ./cmd/gowebdav
2014-10-23 10:39:47 +02:00
2014-10-23 11:15:28 +02:00
test:
2018-05-16 12:23:42 +02:00
go test ./...
2014-10-23 11:15:28 +02:00
2014-10-23 10:39:47 +02:00
clean:
2018-05-16 12:23:42 +02:00
@rm -f ${BIN}
2014-10-23 10:39:47 +02:00
2018-05-16 12:23:42 +02:00
.PHONY: all cmd clean test