]> git.neil.brown.name Git - wiggle.git/commitdiff
Add a PREFIX variable so one can easily install wiggle into a different tree
authorAndreas Kohn <andreas.kohn@gmail.com>
Tue, 13 May 2014 23:08:55 +0000 (01:08 +0200)
committerAndreas Kohn <andreas.kohn@gmail.com>
Tue, 13 May 2014 23:08:55 +0000 (01:08 +0200)
Main use-case here: make install PREFIX=$HOME, to have it install into the user's
$HOME directory.

Makefile

index a4723ae3e042dc5bb466ed26842ab6b4b376a95d..c9e1b0f390245786572fc82bae7ef6076feda02e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,11 +8,12 @@ CWFLAGS=-Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-mis
 endif
 CFLAGS=$(OptDbg) -I. $(CWFLAGS)
 
+PREFIX  = /usr
 # STRIP = -s
 INSTALL = /usr/bin/install -D
 DESTDIR =
-BINDIR  = /usr/bin
-MANDIR  = /usr/share/man
+BINDIR  = $(PREFIX)/bin
+MANDIR  = $(PREFIX)/share/man
 MAN1DIR = $(MANDIR)/man1
 MAN5DIR = $(MANDIR)/man5
 LDLIBS = -lncurses