summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8a266b4..f2227ad 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ VERSION = 0.2
# Paths
DESTDIR = /usr/local
+BINDIR = $(DESTDIR)/bin
+MANDIR = $(DESTDIR)/share/man/man1
CC := gcc
CFLAGS := $(CFLAGS) -W -Wall -pipe -D_USE_SOURCE -DVERSION="\"$(VERSION)\"" \
@@ -29,8 +31,8 @@ inotail: inotail.o
$(CC) $(CFLAGS) -c $< -o $@
install: inotail
- install -m 775 -D inotail $(DESTDIR)/bin/inotail
- install -m 644 -D inotail.1 $(DESTDIR)/share/man/man1/inotail.1
+ install -m 775 -D inotail $(BINDIR)/inotail
+ install -m 644 -D inotail.1 $(MANDIR)/inotail.1
cscope:
cscope -b