summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-03-28 12:40:00 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-03-28 12:40:00 +0200
commitbdce238cdaac64fad066f8d2eb92883a9c309a55 (patch)
tree381f06b3c5f3099b5810f3d56ac7dd1afe7f9858
parent225f5455b2c1626efe9ed82de4a8c90a4c1b0aa6 (diff)
Makefile: Clean up some more
-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