message: Support PREFIX variable to install in arbitrary location.
diff: # If you have runtime memory issues, disable tcmalloc: add -DNO_TCMALLOC to the make line
  +PREFIX?=/usr/local
  +
  release:
  mkdir -p build/tests;
  mkdir -p build/dist;
  mkdir -p dist;
  - cd build; cmake ../ -DCMAKE_BUILD_TYPE=Release
  + cd build; cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(PREFIX)
  $(MAKE) -C build
  debug:
  mkdir -p dbuild/tests;
  mkdir -p dbuild/dist;
  mkdir -p dist;
  - cd dbuild; cmake ../ -DCMAKE_BUILD_TYPE=Debug
  + cd dbuild; cmake ../ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$(PREFIX)
  $(MAKE) -C dbuild
  test:
  @@ -20,16 +22,16 @@ test:
  clean:
  rm -rf dist;
  - $(MAKE) -C build clean
  + if [ -d build ] ; then $(MAKE) -C build clean ; fi
  rm -rf build
  install:
  cd build; make install
  test_install:
  - cd tests/TestInstall; rm -rf build; mkdir -p build; cd build; cmake ../ -DINSTALL_DIR=/usr/local; make ; ./test_hellosureworld --version
  + cd tests/TestInstall ; rm -rf build; mkdir -p build; cd build; cmake ../ -DINSTALL_DIR=$(PREFIX); make ; ./test_hellosureworld --version
  uninstall:
  - rm -f /usr/local/bin/surelog
  - rm -rf /usr/local/lib/surelog
  - rm -rf /usr/local/include/surelog
  + rm -f $(PREFIX)/bin/surelog
  + rm -rf $(PREFIX)/lib/surelog
  + rm -rf $(PREFIX)/include/surelog
  