~adnano/astronaut

65d507fba47a70969bc1ffa99c0d3cff94f1d2e6 — Adnan Maolood 1 year, 10 months ago 4856ded
doc: Rename to docs
2 files changed, 6 insertions(+), 9 deletions(-)

M Makefile
R doc/astronaut.1.scd => docs/astronaut.1.scd
M Makefile => Makefile +6 -9
@@ 10,29 10,26 @@ RM=rm
GO=go
GOFLAGS=

DOCS = \
	astronaut.1

all: astronaut doc
all: astronaut docs

astronaut:
	$(GO) build $(GOFLAGS) \
		-ldflags "-X main.ShareDir=$(SHAREDIR)" \
		-o $@

doc: $(DOCS)
docs: docs/astronaut.1

astronaut.1: doc/astronaut.1.scd
	scdoc < doc/astronaut.1.scd > $@
docs/astronaut.1: docs/astronaut.1.scd
	scdoc < docs/astronaut.1.scd > $@

clean:
	$(RM) astronaut
	$(RM) $(DOCS)
	$(RM) docs/astronaut.1

install:
	mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(SHAREDIR) $(DESTDIR)$(MANDIR)/man1
	install -m755 astronaut $(DESTDIR)$(BINDIR)/astronaut
	install -m644 astronaut.1 $(DESTDIR)$(MANDIR)/man1/astronaut.1
	install -m644 docs/astronaut.1 $(DESTDIR)$(MANDIR)/man1/astronaut.1
	install -m644 config/astronaut.conf $(DESTDIR)$(SHAREDIR)/astronaut.conf
	install -m644 config/style.conf $(DESTDIR)$(SHAREDIR)/style.conf


R doc/astronaut.1.scd => docs/astronaut.1.scd +0 -0