Add TOPDIR variable
authorPaul Crowley <paul@lshift.net>
Mon, 09 Nov 2009 16:05:49 +0000
changeset 171 7b69d1d86254
parent 170 0f5e30c85fc3
child 172 5dd3698fad54
child 173 ac7bd25849bd
Add TOPDIR variable
Makefile
--- a/Makefile	Mon Nov 09 15:52:58 2009 +0000
+++ b/Makefile	Mon Nov 09 16:05:49 2009 +0000
@@ -1,9 +1,10 @@
 #!/usr/bin/env make -f
 
-PREFIX=/usr/local/share
+TOPDIR=
+PREFIX=$(TOPDIR)/usr/local/share
 LIBDIR=$(PREFIX)/mercurial-server
 DOCDIR=$(PREFIX)/doc/mercurial-server
-ETCDIR=/etc/mercurial-server
+ETCDIR=$(TOPDIR)/etc/mercurial-server
 NEWUSER=hg
 
 INSTALL=install