# HG changeset patch # User nkeynes # Date 1246267511 0 # Node ID 06ea56ae747f0838bbfbc2a0cf9a8e5791bb1e6f # Parent 46f3893e59ce0e8260dbe8af80cd658666c37f85 Add code to the makefile to construct the .dmg images. Apparently it _can_ be done after all --- a/Makefile.am Mon Jun 29 06:38:16 2009 +0000 +++ b/Makefile.am Mon Jun 29 09:25:11 2009 +0000 @@ -2,6 +2,8 @@ POD2MAN=@POD2MAN@ BUNDLE=lxdream.app +DMGFILE=lxdream-$(VERSION)-$(host_cpu).dmg +DMGLABEL=Lxdream-$(VERSION)-$(host_cpu) if BUILD_SYSTEST TEST_SUBDIR = test @@ -82,4 +84,17 @@ @echo --- Done --- endif +# Build a Mac DMG disk image. +dmg: $(BUNDLE) + @echo --- Building DMG image --- + hdiutil create -fs HFS+ -size 5m -volname $(DMGLABEL) $(DMGFILE) + hdiutil attach -mountpoint tmp.mount $(DMGFILE) + cp -Rdp $(BUNDLE) tmp.mount/ + cp dmg.layout tmp.mount/.DS_Store + ln -s /Applications tmp.mount/Applications + hdiutil unmount tmp.mount + zip -9 $(DMGFILE).zip $(DMGFILE) + rm $(DMGFILE) + @echo --- Done --- + bundle: all --- a/Makefile.in Mon Jun 29 06:38:16 2009 +0000 +++ b/Makefile.in Mon Jun 29 09:25:11 2009 +0000 @@ -270,6 +270,8 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ BUNDLE = lxdream.app +DMGFILE = lxdream-$(VERSION)-$(host_cpu).dmg +DMGLABEL = Lxdream-$(VERSION)-$(host_cpu) @BUILD_SYSTEST_TRUE@TEST_SUBDIR = test SUBDIRS = src po $(TEST_SUBDIR) EXTRA_DIST = autogen.sh lxdream.pod lxdream.desktop bundlelibs.pl @@ -847,6 +849,19 @@ @GUI_COCOA_TRUE@ done @GUI_COCOA_TRUE@ @echo --- Done --- +# Build a Mac DMG disk image. +dmg: $(BUNDLE) + @echo --- Building DMG image --- + hdiutil create -fs HFS+ -size 5m -volname $(DMGLABEL) $(DMGFILE) + hdiutil attach -mountpoint tmp.mount $(DMGFILE) + cp -Rdp $(BUNDLE) tmp.mount/ + cp dmg.layout tmp.mount/.DS_Store + ln -s /Applications tmp.mount/Applications + hdiutil unmount tmp.mount + zip -9 $(DMGFILE).zip $(DMGFILE) + rm $(DMGFILE) + @echo --- Done --- + bundle: all # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. Binary file dmg.layout has changed