-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 966 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SKYLIGHT_AVAILABLE := $(shell test -d /System/Library/PrivateFrameworks/SkyLight.framework && echo 1 || echo 0)
override CXXFLAGS += -O2 -Wall -fobjc-arc -D"NS_FORMAT_ARGUMENT(A)=" -D"SKYLIGHT_AVAILABLE=$(SKYLIGHT_AVAILABLE)"
.PHONY: all clean install build run debug update
all: AutoRaise AutoRaise.app
clean:
rm -f AutoRaise
rm -rf AutoRaise.app
install: AutoRaise.app
rm -rf /Applications/AutoRaise.app
cp -r AutoRaise.app /Applications/
AutoRaise: AutoRaise.mm
ifeq ($(SKYLIGHT_AVAILABLE), 1)
g++ $(CXXFLAGS) -o $@ $^ -framework AppKit -F /System/Library/PrivateFrameworks -framework SkyLight
else
g++ $(CXXFLAGS) -o $@ $^ -framework AppKit
endif
AutoRaise.app: AutoRaise Info.plist AutoRaise.icns
./create-app-bundle.sh
build: clean
make CXXFLAGS="-DOLD_ACTIVATION_METHOD -DEXPERIMENTAL_FOCUS_FIRST"
run: build
./AutoRaise -focusDelay 1
debug: build
./AutoRaise -focusDelay 1 -verbose 1
update: build install