Revision 543 trunk/scripts/installers/packagemaker/GNUmakefile.in

GNUmakefile.in (revision 543)
6 6

  
7 7
CC=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8 8

  
9
all:
10
	rm -rvf build/dmg/@target@/Resources
9
all: app dmg
10

  
11
app:
12
	rm -rvf build/dmg/@target@
13
	mkdir -p build/dmg/@target@/srcfolder
14

  
15
	cp -vf docs/install/readme-macos.txt  build/dmg/@target@/srcfolder
16
	cp -Rvf scripts/installers/packagemaker/ADMB-Terminal.app build/dmg/@target@/srcfolder
17
	mkdir -p build/dmg/@target@/srcfolder/ADMB-Terminal.app/Contents/admb
18
	cp -Rvf build/@target@/* build/dmg/@target@/srcfolder/ADMB-Terminal.app/Contents/admb
19
	mv build/dmg/@target@/srcfolder/ADMB-Terminal.app build/dmg/@target@/srcfolder/$(DISTRIBUTION_NAME)\ Terminal.app
20

  
21
pkg:
11 22
	mkdir -p build/dmg/@target@/Resources
12 23

  
13 24
	rm -rvf build/dmg/@target@/installer
14
	mkdir -p build/dmg/@target@/installer/usr/local/bin
15
	mkdir -p build/dmg/@target@/installer/usr/local/admb
25
	mkdir -p build/dmg/@target@/installer
26
	#mkdir -p build/dmg/@target@/installer/usr/local/bin
27
	#mkdir -p build/dmg/@target@/installer/usr/local/admb
16 28

  
17
	cp -Rvf build/@target@/* build/dmg/@target@/installer/usr/local/admb
29
	cp -Rvf build/@target@ build/dmg/@target@/installer/$(DISTRIBUTION_NAME)
18 30
	rm -rvf `find build/dmg/@target@/installer -type d -name .svn`
19 31

  
20
	cp -vf scripts/admb/admb-bin build/dmg/@target@/installer/usr/local/bin/admb
32
	#cp -vf scripts/admb/admb-bin build/dmg/@target@/installer/usr/local/bin/admb
21 33

  
22
	cp -vf build/dmg/@target@/installer/usr/local/admb/README.txt build/dmg/@target@/Resources/Welcome.txt
23
	cp -vf build/dmg/@target@/installer/usr/local/admb/LICENSE.txt build/dmg/@target@/Resources/License.txt
34
	cp -vf build/dmg/@target@/installer/$(DISTRIBUTION_NAME)/README.txt build/dmg/@target@/Resources/Welcome.txt
35
	cp -vf build/dmg/@target@/installer/$(DISTRIBUTION_NAME)/LICENSE.txt build/dmg/@target@/Resources/License.txt
24 36
	cp -vf scripts/installers/packagemaker/Resources/background.jpg  build/dmg/@target@/Resources/
25 37
	mkdir -p build/dmg/@target@/package
26 38
	cp -vf docs/install/readme-macos.txt  build/dmg/@target@/package
27
	$(CC) --verbose --title $(DISTRIBUTION_NAME) --root build/dmg/@target@/installer --id www.admb-project.org --resources build/dmg/@target@/Resources --out build/dmg/@target@/package/@target@.pkg
28
	rm -vf build/@target@.dmg
29
	hdiutil create build/@target@.dmg -volname "ADMB @version@" -srcfolder build/dmg/@target@/package
39
	$(CC) --verbose --title "$(DISTRIBUTION_NAME)" --root build/dmg/@target@/installer --id www.admb-project.org --resources build/dmg/@target@/Resources --out build/dmg/@target@/package/@target@.pkg
40

  
41
dmg:
42
	rm -rvf `find build/dmg/@target@ -type d -name .svn`
43
	rm -vf build/@target2@.dmg
44
	hdiutil create build/@target2@.dmg -volname "$(DISTRIBUTION_NAME)" -srcfolder build/dmg/@target@/srcfolder

Also available in: Unified diff