Makefile: Minor improvements, usage of $@ and $(RM)
This commit is contained in:
parent
3e7ac52e1b
commit
78fc83ef3d
4
Makefile
4
Makefile
|
@ -9,7 +9,7 @@ aerc:
|
||||||
go build $(GOFLAGS) \
|
go build $(GOFLAGS) \
|
||||||
-ldflags "-X main.Prefix=$(PREFIX)" \
|
-ldflags "-X main.Prefix=$(PREFIX)" \
|
||||||
-ldflags "-X main.ShareDir=$(SHAREDIR)" \
|
-ldflags "-X main.ShareDir=$(SHAREDIR)" \
|
||||||
-o aerc
|
-o $@
|
||||||
|
|
||||||
%.1: doc/%.1.scd
|
%.1: doc/%.1.scd
|
||||||
scdoc < $< > $@
|
scdoc < $< > $@
|
||||||
|
@ -32,7 +32,7 @@ doc: $(DOCS)
|
||||||
all: aerc doc
|
all: aerc doc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.1 *.5 aerc
|
$(RM) *.1 *.5 *.7 aerc
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \
|
mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \
|
||||||
|
|
Loading…
Reference in New Issue