Search
lxdream.org :: lxdream/Makefile.am :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 1061:06ea56ae747f
prev1053:7a9a5eef34ac
next1170:9ffc8295b414
author nkeynes
date Mon Jun 29 09:25:11 2009 +0000 (10 years ago)
permissions -rw-r--r--
last change Add code to the makefile to construct the .dmg images. Apparently it _can_ be done after all
file annotate diff log raw
1.1 --- a/Makefile.am Sun Jun 28 09:22:43 2009 +0000
1.2 +++ b/Makefile.am Mon Jun 29 09:25:11 2009 +0000
1.3 @@ -2,6 +2,8 @@
1.4
1.5 POD2MAN=@POD2MAN@
1.6 BUNDLE=lxdream.app
1.7 +DMGFILE=lxdream-$(VERSION)-$(host_cpu).dmg
1.8 +DMGLABEL=Lxdream-$(VERSION)-$(host_cpu)
1.9
1.10 if BUILD_SYSTEST
1.11 TEST_SUBDIR = test
1.12 @@ -82,4 +84,17 @@
1.13 @echo --- Done ---
1.14 endif
1.15
1.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_Store
1.23 + ln -s /Applications tmp.mount/Applications
1.24 + hdiutil unmount tmp.mount
1.25 + zip -9 $(DMGFILE).zip $(DMGFILE)
1.26 + rm $(DMGFILE)
1.27 + @echo --- Done ---
1.28 +
1.29 bundle: all
.