1 Star 0 Fork 0

bravoadmin/OS-X-Voodoo-PS2-Controller

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
makefile 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
RehabMan 提交于 2018-09-22 05:48 . remove VoodooPS2Daemon related scripting
KEXT=VoodooPS2Controller.kext
DIST=RehabMan-Voodoo
BUILDDIR=./Build/Products
VERSION_ERA=$(shell ./print_version.sh)
ifeq "$(VERSION_ERA)" "10.10-"
INSTDIR=/System/Library/Extensions
else
INSTDIR=/Library/Extensions
endif
ifeq ($(findstring 32,$(BITS)),32)
OPTIONS:=$(OPTIONS) -arch i386
endif
ifeq ($(findstring 64,$(BITS)),64)
OPTIONS:=$(OPTIONS) -arch x86_64
endif
.PHONY: all
all:
xcodebuild build $(OPTIONS) -scheme All -configuration Debug
xcodebuild build $(OPTIONS) -scheme All -configuration Release
.PHONY: clean
clean:
xcodebuild clean $(OPTIONS) -scheme All -configuration Debug
xcodebuild clean $(OPTIONS) -scheme All -configuration Release
.PHONY: update_kernelcache
update_kernelcache:
sudo touch /System/Library/Extensions
sudo kextcache -update-volume /
.PHONY: install_debug
install_debug:
sudo rm -Rf $(INSTDIR)/$(KEXT)
sudo cp -R $(BUILDDIR)/Debug/$(KEXT) $(INSTDIR)
if [ "`which tag`" != "" ]; then sudo tag -a Purple $(INSTDIR)/$(KEXT); fi
make update_kernelcache
.PHONY: install
install:
sudo rm -Rf $(INSTDIR)/$(KEXT)
sudo cp -R $(BUILDDIR)/Release/$(KEXT) $(INSTDIR)
if [ "`which tag`" != "" ]; then sudo tag -a Blue $(INSTDIR)/$(KEXT); fi
make update_kernelcache
.PHONY: install_mouse
install_mouse:
sudo rm -Rf $(INSTDIR)/$(KEXT)
sudo cp -R $(BUILDDIR)/Release/$(KEXT) $(INSTDIR)
if [ "`which tag`" != "" ]; then sudo tag -a Blue $(INSTDIR)/$(KEXT); fi
sudo rm -R $(INSTDIR)/$(KEXT)/Contents/PlugIns/VoodooPS2Trackpad.kext
sudo /usr/libexec/PlistBuddy -c "Set ':IOKitPersonalities:ApplePS2Mouse:Platform Profile:HPQOEM:ProBook:DisableDevice' No" $(INSTDIR)/$(KEXT)/Contents/PlugIns/VoodooPS2Mouse.kext/Contents/Info.plist
make update_kernelcache
.PHONY: install_mouse_debug
install_mouse_debug:
sudo rm -Rf $(INSTDIR)/$(KEXT)
sudo cp -R $(BUILDDIR)/Debug/$(KEXT) $(INSTDIR)
if [ "`which tag`" != "" ]; then sudo tag -a Purple $(INSTDIR)/$(KEXT); fi
sudo rm -R $(INSTDIR)/$(KEXT)/Contents/PlugIns/VoodooPS2Trackpad.kext
sudo /usr/libexec/PlistBuddy -c "Set ':IOKitPersonalities:ApplePS2Mouse:Platform Profile:HPQOEM:ProBook:DisableDevice' No" $(INSTDIR)/$(KEXT)/Contents/PlugIns/VoodooPS2Mouse.kext/Contents/Info.plist
make update_kernelcache
install.sh: makefile
make -n install >install.sh
chmod +x install.sh
.PHONY: distribute
distribute:
if [ -e ./Distribute ]; then rm -r ./Distribute; fi
mkdir ./Distribute
cp -R $(BUILDDIR)/ ./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 README.md ./Distribute
cp LICENSE.md ./Distribute
rm -rf ./Distribute/Debug/VoodooPS2synapticsPane.prefPane
rm -rf ./Distribute/Release/VoodooPS2synapticsPane.prefPane
rm -f ./Distribute/Debug/synapticsconfigload
rm -f ./Distribute/Release/synapticsconfigload
ditto -c -k --sequesterRsrc --zlibCompressionLevel 9 ./Distribute ./Archive.zip
mv ./Archive.zip ./Distribute/`date +$(DIST)-%Y-%m%d.zip`
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bravoadmin/OS-X-Voodoo-PS2-Controller.git
git@gitee.com:bravoadmin/OS-X-Voodoo-PS2-Controller.git
bravoadmin
OS-X-Voodoo-PS2-Controller
OS-X-Voodoo-PS2-Controller
master

搜索帮助