From 524f1e09b1e0ca507283e6044f349af0a8c9e45c Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Wed, 6 Jul 2022 09:04:10 -0400 Subject: [PATCH] Makefile: Use phony target --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0b641ec..e119d5b 100644 --- a/Makefile +++ b/Makefile @@ -10,19 +10,19 @@ GOFLAGS?= all: kiln docs +kiln: + $(GO) build $(GOFLAGS) -o $@ + docs: docs/kiln.1 .1.scd.1: scdoc < $< > $@ -kiln: *.go go.mod go.sum config.toml templates/_default/* - $(GO) build $(GOFLAGS) -o $@ - clean: $(RM) kiln $(RM) docs/kiln.1 -install: all +install: mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 install -m755 kiln $(DESTDIR)$(BINDIR)/kiln install -m644 docs/kiln.1 $(DESTDIR)$(MANDIR)/man1/kiln.1 @@ -31,4 +31,4 @@ uninstall: $(RM) $(DESTDIR)$(BINDIR)/kiln $(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1 -.PHONY: all docs clean install uninstall +.PHONY: all kiln docs clean install uninstall