mirror of
https://github.com/zhigang1992/OS-X-Voodoo-PS2-Controller.git
synced 2026-04-30 13:02:29 +08:00
add makefile distribute section
This commit is contained in:
20
makefile
20
makefile
@@ -1,19 +1,23 @@
|
||||
# really just some handy scripts...
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
xcodebuild -scheme All -configuration Debug
|
||||
xcodebuild -scheme All -configuration Release
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
xcodebuild -scheme All -configuration Debug clean
|
||||
xcodebuild -scheme All -configuration Release clean
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
sudo cp -R ./Build/Products/Debug/VoodooPS2Controller.kext /System/Library/Extensions
|
||||
sudo touch /System/Library/Extensions
|
||||
sudo cp ./VoodooPS2Daemon/org.rehabman.voodoo.driver.SynapticsDaemon.plist /Library/LaunchDaemons
|
||||
sudo cp ./Build/Products/Debug/VoodooPS2Daemon /usr/bin
|
||||
|
||||
.PHONY: install_release
|
||||
install_release:
|
||||
sudo cp -R ./Build/Products/Release/VoodooPS2Controller.kext /System/Library/Extensions
|
||||
sudo touch /System/Library/Extensions
|
||||
@@ -24,3 +28,19 @@ install.sh: makefile
|
||||
make -n install_release >install.sh
|
||||
chmod +x install.sh
|
||||
|
||||
.PHONY: distribute
|
||||
distribute:
|
||||
rm -r ./Distribute
|
||||
mkdir ./Distribute
|
||||
cp -R ./Build/Products/ Distribute
|
||||
find ./Distribute -path *.DS_Store -delete
|
||||
find ./Distribute -path *.dSYM -exec echo rm -r {} \; >/tmp/org.voodoo.rm.dsym.sh
|
||||
chmod +x /tmp/org.voodoo.rm.dsym.sh
|
||||
/tmp/org.voodoo.rm.dsym.sh
|
||||
rm /tmp/org.voodoo.rm.dsym.sh
|
||||
cp ./VoodooPS2Daemon/org.rehabman.voodoo.driver.SynapticsDaemon.plist ./Distribute
|
||||
rm -r ./Distribute/Debug/VoodooPS2synapticsPane.prefPane
|
||||
rm -r ./Distribute/Release/VoodooPS2synapticsPane.prefPane
|
||||
rm ./Distribute/Debug/synapticsconfigload
|
||||
rm ./Distribute/Release/synapticsconfigload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user