subscribe-bot/Makefile

10 lines
233 B
Makefile
Raw Normal View History

2020-10-14 21:14:57 +00:00
GIT_COMMIT = $(shell git rev-list -1 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