mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-24 03:01:11 +00:00
Makefile: Add dependency on config.toml and templates
This commit is contained in:
parent
6432a564d8
commit
efbd6cba45
5
Makefile
5
Makefile
|
@ -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 $@
|
||||
|
|
Loading…
Reference in a new issue