-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (34 loc) · 1.01 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Where is a decent copy of GAP to stuff into the app?
# It should have a workspace compiled as bin/workspace.
# It should have its packages compiled.
#GAPDIR=$(HOME)/svn/gap/4.5/gap4r5
GAPDIR=/Applications/GAP.app/gap4r5
all: GAP.dmg
GAP:
mkdir -p -m 755 $@
chmod 755 $@
GAP/GAP.app: open_gap.scpt
osacompile -o $@ $<
cp -a 2008_gap_icon.icns GAP/GAP.app/Contents/Resources/applet.icns
GAP/GAP.app/gap4r5: GAP/GAP.app
rsync -a $(GAPDIR)/ $@ || true
GAP/background.png: background.png
cp -a $< $@
background.png: background.svg
echo Hmm, I used Adobe Illustrator to convert it
ro-GAP.dmg: GAP GAP/background.png GAP/GAP.app GAP/GAP.app/gap4r5
hdiutil create -srcfolder GAP $@ -ov
rw-GAP.dmg: ro-GAP.dmg
hdiutil convert $< -format UDRW -o $@ -ov
GAP.dmg: rw-GAP.dmg
open rw-GAP.dmg
sleep 5
osascript dmg_background.scpt
diskutil eject /Volumes/GAP
hdiutil convert rw-$@ -format UDZO -imagekey zlib-level=9 -o $@ -ov
tidy:
rm -f ro-GAP.dmg rw-GAP.dmg
tidy2: tidy
rm -rf GAP
clean: tidy2
rm -rf GAP.dmg