mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
Makefile: Use phony target
This commit is contained in:
parent
0301276c75
commit
01674d3d05
10
Makefile
10
Makefile
|
@ -10,19 +10,19 @@ GOFLAGS?=
|
||||||
|
|
||||||
all: kiln docs
|
all: kiln docs
|
||||||
|
|
||||||
|
kiln:
|
||||||
|
$(GO) build $(GOFLAGS) -o $@
|
||||||
|
|
||||||
docs: docs/kiln.1
|
docs: docs/kiln.1
|
||||||
|
|
||||||
.1.scd.1:
|
.1.scd.1:
|
||||||
scdoc < $< > $@
|
scdoc < $< > $@
|
||||||
|
|
||||||
kiln: *.go go.mod go.sum config.toml templates/_default/*
|
|
||||||
$(GO) build $(GOFLAGS) -o $@
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) kiln
|
$(RM) kiln
|
||||||
$(RM) docs/kiln.1
|
$(RM) docs/kiln.1
|
||||||
|
|
||||||
install: all
|
install:
|
||||||
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
install -m755 kiln $(DESTDIR)$(BINDIR)/kiln
|
install -m755 kiln $(DESTDIR)$(BINDIR)/kiln
|
||||||
install -m644 docs/kiln.1 $(DESTDIR)$(MANDIR)/man1/kiln.1
|
install -m644 docs/kiln.1 $(DESTDIR)$(MANDIR)/man1/kiln.1
|
||||||
|
@ -31,4 +31,4 @@ uninstall:
|
||||||
$(RM) $(DESTDIR)$(BINDIR)/kiln
|
$(RM) $(DESTDIR)$(BINDIR)/kiln
|
||||||
$(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1
|
$(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1
|
||||||
|
|
||||||
.PHONY: all docs clean install uninstall
|
.PHONY: all kiln docs clean install uninstall
|
||||||
|
|
Loading…
Reference in a new issue