From: Andre Noll Date: Mon, 2 Nov 2009 13:34:15 +0000 (+0100) Subject: Capitalize prefix variable. X-Git-Tag: v0.1.1~6 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=f55deeb0da0fe02cc3ff713e0a02057764b860a0;ds=sidebyside Capitalize prefix variable. As noted by Steffen Schmidt, in most projects the installation prefix is spelled in caps, so follow this rule in osl. Also use ?:= as the assignement operator as it creates a simply expanded variable which is more suitable for the PREFIX variable. --- diff --git a/Makefile b/Makefile index fc134bf..ef12cb8 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ # where to install -prefix := /usr/local -libdir := $(prefix)/lib -includedir := $(prefix)/include -bindir := $(prefix)/bin -mandir := $(prefix)/man/man1 +PREFIX ?:= /usr/local +libdir := $(PREFIX)/lib +includedir := $(PREFIX)/include +bindir := $(PREFIX)/bin +mandir := $(PREFIX)/man/man1 objects := osl.o util.o rbtree.o sha1.o fsck_objects := fsck.fsck.o osl.fsck.o util.fsck.o rbtree.fsck.o sha1.fsck.o fsck.cmdline.o