cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 53b7e74c9cbad49ec68175f1e3aeb256b8c6200e
parent e95313adad341f7333b210a6845af1e2fdc77a37
Author: Kevin Branigan <kbranigan@gmail.com>
Date:   Thu, 11 Feb 2016 13:09:29 -0500

Merge pull request #27 from nagamalli9999/makefile-uninstall

Added uninstall rule to Makefile

Diffstat:
MMakefile | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -22,9 +22,8 @@ DYLIBCMD = $(CC) -shared -o $(DYLIBNAME) ## create dynamic (shared) library on Darwin (base OS for MacOSX and IOS) ifeq (Darwin, $(uname_S)) DYLIBNAME = $(LIBNAME).dylib -endif ## create dyanmic (shared) library on SunOS -ifeq (SunOS, $(uname_S)) +else ifeq (SunOS, $(uname_S)) DYLIBCMD = $(CC) -G -o $(DYLIBNAME) INSTALL = cp -r endif @@ -56,5 +55,10 @@ install: $(DYLIBNAME) $(STLIBNAME) $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH) $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH) +uninstall: + rm -rf $(INSTALL_LIBRARY_PATH)/$(DYLIBNAME) + rm -rf $(INSTALL_LIBRARY_PATH)/$(STLIBNAME) + rm -rf $(INSTALL_INCLUDE_PATH)/cJSON.h + clean: rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) *.o