mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-12-18 11:28:14 +00:00
Rename doc to docs
This commit is contained in:
parent
ec052a7c4c
commit
3b75b56539
14
Makefile
14
Makefile
|
@ -1,6 +1,6 @@
|
||||||
.POSIX:
|
.POSIX:
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .1 .1.scd
|
.SUFFIXES: .1.scd .1
|
||||||
|
|
||||||
_git_version=$(shell git describe --tags --dirty 2>/dev/null)
|
_git_version=$(shell git describe --tags --dirty 2>/dev/null)
|
||||||
ifeq ($(strip $(_git_version)),)
|
ifeq ($(strip $(_git_version)),)
|
||||||
|
@ -13,18 +13,14 @@ PREFIX?=/usr/local
|
||||||
BINDIR?=$(PREFIX)/bin
|
BINDIR?=$(PREFIX)/bin
|
||||||
MANDIR?=$(PREFIX)/share/man
|
MANDIR?=$(PREFIX)/share/man
|
||||||
|
|
||||||
VPATH=doc
|
|
||||||
GO?=go
|
GO?=go
|
||||||
GOFLAGS?=
|
GOFLAGS?=
|
||||||
GOSRC!=find . -name '*.go'
|
GOSRC!=find . -name '*.go'
|
||||||
GOSRC+=go.mod go.sum
|
GOSRC+=go.mod go.sum
|
||||||
|
|
||||||
DOCS := \
|
all: kiln docs
|
||||||
kiln.1
|
|
||||||
|
|
||||||
all: kiln doc
|
docs: docs/kiln.1
|
||||||
|
|
||||||
doc: $(DOCS)
|
|
||||||
|
|
||||||
.1.scd.1:
|
.1.scd.1:
|
||||||
scdoc < $< > $@
|
scdoc < $< > $@
|
||||||
|
@ -41,10 +37,10 @@ clean:
|
||||||
install: all
|
install: all
|
||||||
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 -m755 kiln.1 $(MANDIR)/man1/kiln.1
|
install -m755 docs/kiln.1 $(MANDIR)/man1/kiln.1
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) $(DESTDIR)$(BINDIR)/kiln
|
$(RM) $(DESTDIR)$(BINDIR)/kiln
|
||||||
$(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1
|
$(RM) $(DESTDIR)$(MANDIR)/man1/kiln.1
|
||||||
|
|
||||||
.PHONY: all doc clean install uninstall
|
.PHONY: all docs clean install uninstall
|
||||||
|
|
Loading…
Reference in a new issue