~adnano/astronaut

aa744e61c3825d9e5f680713636bef39a74a4e46 — phoebos 1 year, 4 months ago 762f8a6
Makefile: make more POSIX-compliant

A suffix in .SUFFIXES cannot contain more than one period itself, so the
rule for the manpage must be written explicitly rather than with
inference rules.
1 files changed, 2 insertions(+), 5 deletions(-)

M Makefile
M Makefile => Makefile +2 -5
@@ 1,6 1,4 @@
.POSIX:
.SUFFIXES:
.SUFFIXES: .1 .1.scd

PREFIX=/usr/local



@@ 10,7 8,6 @@ BINDIR=$(PREFIX)/bin
SHAREDIR=$(PREFIX)/share/astronaut
MANDIR=$(PREFIX)/share/man

VPATH=doc
RM=rm
GO=go
GOFLAGS=


@@ 22,8 19,8 @@ all: astronaut doc

doc: $(DOCS)

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

astronaut: $(GOSRC)
	$(GO) build $(GOFLAGS) \