forked from bonsai/harakit
Makefile: fixes abuse of relative paths
This commit is contained in:
parent
fde682a10e
commit
accec33301
6
Makefile
6
Makefile
@ -24,7 +24,7 @@ OS_INCLUDE != test -e include/$(OS).mk && printf 'include/$(OS).mk\n' \
|
||||
# normalized prefix
|
||||
PREFIX_N != realpath $(PREFIX)
|
||||
MANDIR != test $(PREFIX_N) = / && printf '/usr/share/man\n' \
|
||||
|| printf '$(PREFIX)/man\n'
|
||||
|| printf '$(PREFIX_N)/man\n'
|
||||
SYSEXITS != printf '\043include <sysexits.h>\n' | cpp -M - | tr ' ' '\n' \
|
||||
| sed -n 's/sysexits\.h//p' || printf 'include\n'
|
||||
|
||||
@ -54,8 +54,8 @@ clean:
|
||||
rm -rf build dist
|
||||
|
||||
dist: all docs
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/bin $(DESTDIR)/$(MANDIR)/man1
|
||||
cp build/bin/* $(DESTDIR)/$(PREFIX)/bin
|
||||
mkdir -p $(DESTDIR)/$(PREFIX_N)/bin $(DESTDIR)/$(MANDIR)/man1
|
||||
cp build/bin/* $(DESTDIR)/$(PREFIX_N)/bin
|
||||
cp build/docs/*.1 $(DESTDIR)/$(MANDIR)/man1
|
||||
|
||||
.PHONY: install
|
||||
|
Loading…
Reference in New Issue
Block a user