Makefile: Add dependency on config.toml and templates

This commit is contained in:
Adnan Maolood 2021-04-20 17:06:20 -04:00
parent 543708e41d
commit 4639df3dc2

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 $@