Permalink
Browse files

Add install/uninstall facilities

  • Loading branch information...
cyrus-and committed Jul 26, 2012
1 parent c1e43cd commit 3af0f515d79371d52e74db4e9c1b2e163e108914
Showing with 9 additions and 1 deletion.
  1. +7 −1 Makefile
  2. +2 −0 src/CMakeLists.txt
View
@@ -11,7 +11,13 @@ build:
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ../src/ && make
+install:
+ cd ./build-release/ && make install
+
+uninstall:
+ cd ./build-release/ && xargs rm < install_manifest.txt
+
clean:
rm -fr ./build-release/ ./build-debug/
-.PHONY: build build-release build-debug clean
+.PHONY: build build-release build-debug install uninstall clean
View
@@ -29,3 +29,5 @@ add_custom_target(
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../test/test-local.sh
DEPENDS phpfs
)
+
+install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/phpfs DESTINATION bin )

0 comments on commit 3af0f51

Please sign in to comment.