Revision 1030

trunk/scripts/installers/packagemaker/GNUmakefile.in (revision 1030)
1
DISTRIBUTION_NAME=ADMB-11
1
DISTRIBUTION_NAME=ADMB
2 2

  
3 3
#TIGER=10.4
4 4
#LEOPARD=10.5
......
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/readme.txt
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
	cp -vf docs/install/readme-macos.txt  build/dmg/@target@/package
38
	cp -vf docs/install/readme-macos.txt  build/dmg/@target@/package/readme.txt
27 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
28
	rm -vf build/@target@.dmg
29
	hdiutil create build/@target@.dmg -volname "$(DISTRIBUTION_NAME)" -srcfolder build/dmg/@target@/package
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
30 45

  
trunk/scripts/configure/GNUmakefile.in (revision 1030)
1
.PHONY: admb tpl2cpp tpl2rem docs test contrib
1
all:
2
	$(MAKE) --file=Makefile $(CXX)
2 3

  
3
all: admb contrib
4
	@rm -rf admb
5
	@ln -vs build/@target@/ admb
6
	@printf "\nADMB build completed in 'build/@target@'.\n"
7
	@printf "To install, read README.txt.\n"
8

  
9
admb:
10
	@arvar@ CC=@cc@ CFLAGS="@cflags@" CXX=@cxx@ CXXFLAGS="@cxxflags@" LIBPATH=@libpath@ DISK=@disk@ ADMB_CONFIGURE=1 $(MAKE) --directory=src --file=@makefile@
11
	rm -rf `find build/@target@ -type d -name .svn`
12

  
13
tpl2cpp:
14
	$(MAKE) --directory=src/nh99 --file=optg32-rh8-laplace.mak $@.c $@
15

  
16
tpl2rem:
17
	$(MAKE) --directory=src/df1b2-separable --file=optg32-rh8-laplace.mak $@.c $@
18

  
19
debug:
20
	DEBUG=1 CC=@cc@ CXX=@cxx@ CXXFLAGS="@cxxflags@" LIBPATH=@libpath@ DISK=@disk@ ADMB_CONFIGURE=1 $(MAKE) --directory=src --file=@makefile@
21
	rm -rf `find build/@target@ -type d -name .svn`
22
	@printf "\nBuild completed for @target@\n"
23
	@printf "To install ADMB to '@prefix@/bin' and '@prefix@/admb', type 'make install'\n"
24

  
25
docs:
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff