9 lines
239 B
Makefile
9 lines
239 B
Makefile
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
|
SOURCES = $(shell find . -type f -and -name "*.go" -or -name "*.html")
|
|
|
|
all: subscribe-bot
|
|
|
|
subscribe-bot: $(SOURCES)
|
|
go build -o $@ -ldflags "-X main.GitCommit=$(GIT_COMMIT)"
|
|
|
|
.PHONY: all
|