From 6b0b89df7dab81f4b71aa8d60a50d90361ebe1e8 Mon Sep 17 00:00:00 2001 From: zawz Date: Thu, 15 Aug 2019 14:37:08 +0200 Subject: [PATCH] Install location to /usr/local --- Makefile | 8 ++++++-- README.md | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 124b328..ad06a95 100644 --- a/Makefile +++ b/Makefile @@ -45,8 +45,12 @@ shared: $(OBJ_SHARED) $(CC) -shared -o libztd.so $^ install: all - mv libztd.a libztd.so /usr/lib - cp -r include /usr/include/ztd + mv libztd.a libztd.so /usr/local/lib + cp -r include /usr/local/include/ztd + +uninstall: + rm /usr/local/lib/libztd.* + rm -rd /usr/local/include/ztd clean: rm $(ODIR)/*.o $(ODIR_SHARED)/*.o diff --git a/README.md b/README.md index cf2c97e..768b362 100644 --- a/README.md +++ b/README.md @@ -14,5 +14,5 @@ Use ``doxygen`` to generate HTML documentation files ## Installing ``sudo make install`` -Moves ``libztd.a`` and ``libztd.so`` to ``/usr/lib`` -Copies headers to ``/usr/include/ztd`` +Moves ``libztd.a`` and ``libztd.so`` to ``/usr/local/lib`` +Copies headers to ``/usr/local/include/ztd``