Makefile: Minor improvements, usage of $@ and $(RM)

This commit is contained in:
Stefan Tatschner 2019-05-22 22:33:09 +02:00 committed by Drew DeVault
parent 3e7ac52e1b
commit 78fc83ef3d

View file

@ -9,7 +9,7 @@ aerc:
go build $(GOFLAGS) \
-ldflags "-X main.Prefix=$(PREFIX)" \
-ldflags "-X main.ShareDir=$(SHAREDIR)" \
-o aerc
-o $@
%.1: doc/%.1.scd
scdoc < $< > $@
@ -32,7 +32,7 @@ doc: $(DOCS)
all: aerc doc
clean:
rm -f *.1 *.5 aerc
$(RM) *.1 *.5 *.7 aerc
install: all
mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \