Remove more GNU-isms from Makefile

Signed-off-by: Sam Whited <sam@samwhited.com>
This commit is contained in:
Sam Whited 2019-05-30 17:20:20 -05:00 committed by Drew DeVault
parent 7a8f4084ff
commit 0bfb90baed

View file

@ -1,3 +1,7 @@
.POSIX:
.SUFFIXES:
.SUFFIXES: .1 .5 .7 .1.scd .5.scd .7.scd
VPATH=doc
PREFIX?=/usr/local PREFIX?=/usr/local
_INSTDIR=$(DESTDIR)$(PREFIX) _INSTDIR=$(DESTDIR)$(PREFIX)
BINDIR?=$(_INSTDIR)/bin BINDIR?=$(_INSTDIR)/bin
@ -15,16 +19,7 @@ aerc: $(GOSRC)
-o $@ -o $@
aerc.conf: config/aerc.conf.in aerc.conf: config/aerc.conf.in
sed -e 's:@SHAREDIR@:$(SHAREDIR):g' > $@ < $< sed -e 's:@SHAREDIR@:$(SHAREDIR):g' > $@ < config/aerc.conf.in
%.1: doc/%.1.scd
scdoc < $< > $@
%.5: doc/%.5.scd
scdoc < $< > $@
%.7: doc/%.7.scd
scdoc < $< > $@
DOCS := \ DOCS := \
aerc.1 \ aerc.1 \
@ -33,12 +28,24 @@ DOCS := \
aerc-smtp.5 \ aerc-smtp.5 \
aerc-tutorial.7 aerc-tutorial.7
.1.scd.1:
scdoc < $< > $@
.5.scd.5:
scdoc < $< > $@
.7.scd.7:
scdoc < $< > $@
doc: $(DOCS) doc: $(DOCS)
all: aerc aerc.conf doc all: aerc aerc.conf doc
# Exists in GNUMake but not in NetBSD make and others.
RM?=rm -f
clean: clean:
$(RM) *.1 *.5 *.7 aerc $(RM) $(DOCS) aerc
install: all install: all
mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \ mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \