From aa744e61c3825d9e5f680713636bef39a74a4e46 Mon Sep 17 00:00:00 2001 From: phoebos Date: Tue, 24 May 2022 18:36:58 +0100 Subject: [PATCH] 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. --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fc76416..d76d2f3 100644 --- a/Makefile +++ b/Makefile @@ -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) \ -- 2.38.5