mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-09-08 03:10:36 +02:00
36 lines
578 B
Makefile
36 lines
578 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
|
|
PREFIX=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
MANDIR=$(PREFIX)/share/man
|
|
|
|
RM=rm
|
|
GO=go
|
|
GOFLAGS=
|
|
|
|
all: kiln docs
|
|
|
|
kiln:
|
|
$(GO) build $(GOFLAGS) -o $@
|
|
|
|
docs: docs/kiln.1
|
|
|
|
docs/kiln.1: docs/kiln.1.scd
|
|
scdoc < docs/kiln.1.scd > $@
|
|
|
|
clean:
|
|
$(RM) kiln
|
|
$(RM) docs/kiln.1
|
|
|
|
install:
|
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
|
install -m755 kiln $(DESTDIR)$(BINDIR)/kiln
|
|
install -m644 docs/kiln.1 $(DESTDIR)$(MANDIR)/man1/kiln.1
|
|
|
|
uninstall:
|
|
$(RM) $(DESTDIR)$(BINDIR)/kiln
|
|
$(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1
|
|
|
|
.PHONY: all kiln docs clean install uninstall
|