]> git.saurik.com Git - cycript.git/blobdiff - makefile
Port Objective-C/Replace to C++.
[cycript.git] / makefile
index bebb995446f6c9897c7fde1669e9afd71b6ab73b..3df44501251d5efe4129c4384f25d1693eb59263 100644 (file)
--- a/makefile
+++ b/makefile
@@ -112,7 +112,7 @@ endif
 all: $(all)
 
 clean::
-       rm -f *.o $(lib)cycript.$(dll) $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh cyrver Cycript.yy Cycript.l control Bridge.hpp
+       rm -f *.o $(lib)cycript.$(dll) $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh cyrver Cycript.yy Cycript.l control Bridge.hpp Cycript.output
 
 %.yy: %.yy.in
        ./Filter.sh <$< >$@ $(filters)
@@ -159,7 +159,12 @@ test: $(deb)
        if [[ -e test.cy ]]; then cycript test.cy; fi
 
 install: cycript $(lib)cycript.$(dll)
-       cp -p cycript /usr/bin
-       cp -p $(lib)cycript.$(dll) /usr/lib
+       sudo cp -p cycript /usr/bin
+       sudo cp -p $(lib)cycript.$(dll) /usr/lib
+       sudo chgrp procmod /usr/bin/cycript
+       sudo chmod g+s /usr/bin/cycript
+
+uninstall:
+       sudo rm -f /usr/bin/cycript /usr/lib/libcycript.dylib
 
 .PHONY: all clean extra package control.tmp