-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (14 loc) · 733 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PHOTOSHOP_INSTALLER_PATH=/Volumes/Photoshop\ Installer/Photoshop\ Installer.app/Contents/MacOS/Install
lib_override_volume_sensitivity_check.dylib: src/override_volume_sensitivity_check.c
gcc -DDEBUG -ggdb -arch i386 -arch x86_64 -Wall -framework CoreServices -o lib_override_volume_sensitivity_check.dylib -dynamiclib src/override_volume_sensitivity_check.c
.PHONY: clean run
test:
@echo $(PHOTOSHOP_INSTALLER_PATH)
clean:
rm -rf ./*.dylib* *~ core
run: lib_override_volume_sensitivity_check.dylib
ifneq ($(shell whoami),root)
@echo "You are not root. Please rerun this command as root (sudo make run)"
else
DYLD_INSERT_LIBRARIES=$(shell pwd)/lib_override_volume_sensitivity_check.dylib $(PHOTOSHOP_INSTALLER_PATH)
endif