installation prefix not changeable in makefile
Opened this issue · 0 comments
paalsteek commented
for packaging the installation prefix should be /usr and not /usr/local but there seems to be no way to change this when calling make.
The following patch allows that by calling "make PREFIX=/usr"
--- Makefile.old 2011-06-26 20:08:53.889195758 +0200
+++ Makefile 2011-06-26 20:04:46.327622501 +0200
@@ -1,6 +1,7 @@
BUILDDIR = build
CMAKECMD = cmake ../
CMAKEOUTPUT = $(BUILDDIR)/Makefile
+PREFIX=/usr/local
MFLAGS = -s
all: $(CMAKEOUTPUT)
@@ -11,7 +12,7 @@
@cd $(BUILDDIR) && $ (MAKE) $(MFLAGS) test
-
@cd $(BUILDDIR) && $(CMAKECMD) -DCMAKE_BUILD_TYPE=Debug
-
@cd $(BUILDDIR) && $(CMAKECMD) -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$(PREFIX)
release: $(BUILDDIR)
@cd$(BUILDDIR) && $ (CMAKECMD) -DCMAKE_BUILD_TYPE=Release