revision 1061:06ea56ae747f
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1061:06ea56ae747f |
parent | 1060:46f3893e59ce |
child | 1062:5bde715d4d3d |
author | nkeynes |
date | Mon Jun 29 09:25:11 2009 +0000 (13 years ago) |
Add code to the makefile to construct the .dmg images. Apparently it _can_ be done after all
![]() | Makefile.am | view | annotate | diff | log | |
![]() | Makefile.in | view | annotate | diff | log | |
![]() | dmg.layout | view | annotate | diff | log |
1.1 --- a/Makefile.am Mon Jun 29 06:38:16 2009 +00001.2 +++ b/Makefile.am Mon Jun 29 09:25:11 2009 +00001.3 @@ -2,6 +2,8 @@1.5 POD2MAN=@POD2MAN@1.6 BUNDLE=lxdream.app1.7 +DMGFILE=lxdream-$(VERSION)-$(host_cpu).dmg1.8 +DMGLABEL=Lxdream-$(VERSION)-$(host_cpu)1.10 if BUILD_SYSTEST1.11 TEST_SUBDIR = test1.12 @@ -82,4 +84,17 @@1.13 @echo --- Done ---1.14 endif1.16 +# Build a Mac DMG disk image.1.17 +dmg: $(BUNDLE)1.18 + @echo --- Building DMG image ---1.19 + hdiutil create -fs HFS+ -size 5m -volname $(DMGLABEL) $(DMGFILE)1.20 + hdiutil attach -mountpoint tmp.mount $(DMGFILE)1.21 + cp -Rdp $(BUNDLE) tmp.mount/1.22 + cp dmg.layout tmp.mount/.DS_Store1.23 + ln -s /Applications tmp.mount/Applications1.24 + hdiutil unmount tmp.mount1.25 + zip -9 $(DMGFILE).zip $(DMGFILE)1.26 + rm $(DMGFILE)1.27 + @echo --- Done ---1.28 +1.29 bundle: all
2.1 --- a/Makefile.in Mon Jun 29 06:38:16 2009 +00002.2 +++ b/Makefile.in Mon Jun 29 09:25:11 2009 +00002.3 @@ -270,6 +270,8 @@2.4 sysconfdir = @sysconfdir@2.5 target_alias = @target_alias@2.6 BUNDLE = lxdream.app2.7 +DMGFILE = lxdream-$(VERSION)-$(host_cpu).dmg2.8 +DMGLABEL = Lxdream-$(VERSION)-$(host_cpu)2.9 @BUILD_SYSTEST_TRUE@TEST_SUBDIR = test2.10 SUBDIRS = src po $(TEST_SUBDIR)2.11 EXTRA_DIST = autogen.sh lxdream.pod lxdream.desktop bundlelibs.pl2.12 @@ -847,6 +849,19 @@2.13 @GUI_COCOA_TRUE@ done2.14 @GUI_COCOA_TRUE@ @echo --- Done ---2.16 +# Build a Mac DMG disk image.2.17 +dmg: $(BUNDLE)2.18 + @echo --- Building DMG image ---2.19 + hdiutil create -fs HFS+ -size 5m -volname $(DMGLABEL) $(DMGFILE)2.20 + hdiutil attach -mountpoint tmp.mount $(DMGFILE)2.21 + cp -Rdp $(BUNDLE) tmp.mount/2.22 + cp dmg.layout tmp.mount/.DS_Store2.23 + ln -s /Applications tmp.mount/Applications2.24 + hdiutil unmount tmp.mount2.25 + zip -9 $(DMGFILE).zip $(DMGFILE)2.26 + rm $(DMGFILE)2.27 + @echo --- Done ---2.28 +2.29 bundle: all2.30 # Tell versions [3.59,3.63) of GNU make to not export all variables.2.31 # Otherwise a system limit (for SysV at least) may be exceeded.
3.1 Binary file dmg.layout has changed
.