mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +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
|
PREFIX?=/usr/local
|
||||||
BINDIR?=$(PREFIX)/bin
|
BINDIR?=$(PREFIX)/bin
|
||||||
MANDIR?=$(PREFIX)/share/man
|
MANDIR?=$(PREFIX)/share/man
|
||||||
|
|
||||||
GO?=go
|
GO?=go
|
||||||
GOFLAGS?=
|
GOFLAGS?=
|
||||||
GOSRC!=find . -name '*.go'
|
|
||||||
GOSRC+=go.mod go.sum
|
|
||||||
|
|
||||||
all: kiln docs
|
all: kiln docs
|
||||||
|
|
||||||
|
@ -25,7 +22,7 @@ docs: docs/kiln.1
|
||||||
.1.scd.1:
|
.1.scd.1:
|
||||||
scdoc < $< > $@
|
scdoc < $< > $@
|
||||||
|
|
||||||
kiln: $(GOSRC)
|
kiln: *.go go.mod go.sum config.toml templates/*
|
||||||
$(GO) build $(GOFLAGS) \
|
$(GO) build $(GOFLAGS) \
|
||||||
-ldflags "-X main.Version=$(VERSION)" \
|
-ldflags "-X main.Version=$(VERSION)" \
|
||||||
-o $@
|
-o $@
|
||||||
|
|
Loading…
Reference in a new issue