2020-11-02 01:51:43 +00:00
|
|
|
.POSIX:
|
|
|
|
.SUFFIXES:
|
|
|
|
|
2022-07-06 13:12:58 +00:00
|
|
|
PREFIX=/usr/local
|
|
|
|
BINDIR=$(PREFIX)/bin
|
|
|
|
MANDIR=$(PREFIX)/share/man
|
|
|
|
|
|
|
|
RM=rm
|
|
|
|
GO=go
|
|
|
|
GOFLAGS=
|
2020-11-02 01:51:43 +00:00
|
|
|
|
2021-04-20 20:57:05 +00:00
|
|
|
all: kiln docs
|
2020-11-11 00:34:05 +00:00
|
|
|
|
2022-07-06 13:04:10 +00:00
|
|
|
kiln:
|
|
|
|
$(GO) build $(GOFLAGS) -o $@
|
|
|
|
|
2021-04-20 20:57:05 +00:00
|
|
|
docs: docs/kiln.1
|
2020-11-11 00:34:05 +00:00
|
|
|
|
2022-07-06 13:12:58 +00:00
|
|
|
docs/kiln.1: docs/kiln.1.scd
|
|
|
|
scdoc < docs/kiln.1.scd > $@
|
2020-11-02 01:51:43 +00:00
|
|
|
|
|
|
|
clean:
|
2020-11-11 00:34:05 +00:00
|
|
|
$(RM) kiln
|
2021-04-20 21:05:05 +00:00
|
|
|
$(RM) docs/kiln.1
|
2020-11-02 01:51:43 +00:00
|
|
|
|
2022-07-06 13:04:10 +00:00
|
|
|
install:
|
2020-11-20 17:07:38 +00:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
|
|
|
install -m755 kiln $(DESTDIR)$(BINDIR)/kiln
|
2021-08-25 19:09:27 +00:00
|
|
|
install -m644 docs/kiln.1 $(DESTDIR)$(MANDIR)/man1/kiln.1
|
2020-11-02 01:51:43 +00:00
|
|
|
|
|
|
|
uninstall:
|
2020-11-20 17:07:38 +00:00
|
|
|
$(RM) $(DESTDIR)$(BINDIR)/kiln
|
2020-11-11 00:34:05 +00:00
|
|
|
$(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1
|
2020-11-02 01:51:43 +00:00
|
|
|
|
2022-07-06 13:04:10 +00:00
|
|
|
.PHONY: all kiln docs clean install uninstall
|