Makefile: make POSIX-compliant

This commit is contained in:
adnano 2022-07-06 09:12:58 -04:00
parent 01674d3d05
commit 9d0c5c2af7

View file

@ -1,12 +1,13 @@
.POSIX: .POSIX:
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .1.scd .1
PREFIX?=/usr/local PREFIX=/usr/local
BINDIR?=$(PREFIX)/bin BINDIR=$(PREFIX)/bin
MANDIR?=$(PREFIX)/share/man MANDIR=$(PREFIX)/share/man
GO?=go
GOFLAGS?= RM=rm
GO=go
GOFLAGS=
all: kiln docs all: kiln docs
@ -15,8 +16,8 @@ kiln:
docs: docs/kiln.1 docs: docs/kiln.1
.1.scd.1: docs/kiln.1: docs/kiln.1.scd
scdoc < $< > $@ scdoc < docs/kiln.1.scd > $@
clean: clean:
$(RM) kiln $(RM) kiln