-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (27 loc) · 983 Bytes
/
Makefile
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
CFLAGS=-bundle -framework Cocoa -O2 -Wall
OBJECTS=JRSwizzle.m MouseTerm.m Terminal.m
NAME=MouseTerm
TARGET=$(NAME).bundle/Contents/MacOS/$(NAME)
DMGFILES=$(NAME).bundle README.txt LICENSE.txt
build:
mkdir -p $(NAME).bundle/Contents/MacOS
gcc $(CFLAGS) -arch i386 -arch x86_64 -mmacosx-version-min=10.6 $(OBJECTS) -o $(TARGET)
cp Info.plist $(NAME).bundle/Contents
buildnative:
mkdir -p $(NAME).bundle/Contents/MacOS
gcc $(CFLAGS) $(OBJECTS) -o $(TARGET)
cp Info.plist $(NAME).bundle/Contents
builddmg:
rm -rf $(NAME) $(NAME).dmg
mkdir $(NAME)
osacompile -o $(NAME)/Install.app Install.scpt
osacompile -o $(NAME)/Uninstall.app Uninstall.scpt
cp -R $(DMGFILES) $(NAME)
hdiutil create -fs HFS+ -imagekey zlib-level=9 -srcfolder $(NAME) -volname $(NAME) $(NAME).dmg
rm -rf $(NAME)
clean:
rm -rf $(NAME).bundle
rm -f $(NAME).dmg
install:
mkdir -p $(HOME)/Library/Application\ Support/SIMBL/Plugins
cp -R $(NAME).bundle $(HOME)/Library/Application\ Support/SIMBL/Plugins