summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index f5142db..54f3759 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ BINS=isutf8 ifdata ifne pee sponge mispipe lckdo
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
+INSTALL_BIN?=install -s
all: $(BINS) $(MANS)
@@ -10,12 +10,12 @@ clean:
rm -f $(BINS) $(MANS)
install:
- mkdir -p $(PREFIX)/usr/bin
- $(INSTALL_BIN) $(BINS) $(PREFIX)/usr/bin
- install $(PERLSCRIPTS) $(PREFIX)/usr/bin
+ mkdir -p $(DESTDIR)/usr/bin
+ $(INSTALL_BIN) $(BINS) $(DESTDIR)/usr/bin
+ install $(PERLSCRIPTS) $(DESTDIR)/usr/bin
- mkdir -p $(PREFIX)/usr/share/man/man1
- install $(MANS) $(PREFIX)/usr/share/man/man1
+ mkdir -p $(DESTDIR)/usr/share/man/man1
+ install $(MANS) $(DESTDIR)/usr/share/man/man1
check: isutf8
./check-isutf8