summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b0595c4..2cf8d53 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ PERLSCRIPTS=vidir vipe ts combine zrun
MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1
CFLAGS=-O2 -g -Wall
INSTALL_BIN?=install -s
+PREFIX=/usr
DOCBOOK2XMAN="docbook2x-man"
@@ -12,12 +13,12 @@ clean:
rm -f $(BINS) $(MANS)
install:
- mkdir -p $(DESTDIR)/usr/bin
- $(INSTALL_BIN) $(BINS) $(DESTDIR)/usr/bin
- install $(PERLSCRIPTS) $(DESTDIR)/usr/bin
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
+ install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
- mkdir -p $(DESTDIR)/usr/share/man/man1
- install $(MANS) $(DESTDIR)/usr/share/man/man1
+ mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
+ install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
check: isutf8
./check-isutf8