Makefile: Add dependency on config.toml and templates

This commit is contained in:
adnano 2021-04-20 17:06:20 -04:00
parent 6432a564d8
commit efbd6cba45

View file

@ -12,11 +12,8 @@ endif
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin
MANDIR?=$(PREFIX)/share/man
GO?=go
GOFLAGS?=
GOSRC!=find . -name '*.go'
GOSRC+=go.mod go.sum
all: kiln docs
@ -25,7 +22,7 @@ docs: docs/kiln.1
.1.scd.1:
scdoc < $< > $@
kiln: $(GOSRC)
kiln: *.go go.mod go.sum config.toml templates/*
$(GO) build $(GOFLAGS) \
-ldflags "-X main.Version=$(VERSION)" \
-o $@