eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot Makefile.am


From: Olivier Teulière
Subject: [Eliot-dev] eliot Makefile.am
Date: Sun, 07 Feb 2010 21:37:24 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>       10/02/07 21:37:24

Modified files:
        .              : Makefile.am 

Log message:
        New target to generate a .dmg file (untested)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/Makefile.am?cvsroot=eliot&r1=1.15&r2=1.16

Patches:
Index: Makefile.am
===================================================================
RCS file: /cvsroot/eliot/eliot/Makefile.am,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- Makefile.am 29 Jan 2010 21:13:05 -0000      1.15
+++ Makefile.am 7 Feb 2010 21:37:24 -0000       1.16
@@ -3,7 +3,9 @@
 ACLOCAL_AMFLAGS = -I m4
 
 WIN32_PACKAGE_DIR = $(top_builddir)/eliot-$(VERSION)
-MACOSX_PACKAGE_DIR = $(top_builddir)/Eliot.app
+MACOSX_PACKAGE_DIR = $(top_builddir)/eliot-$(VERSION)/Eliot.app
+
+DMG_FILE = $(top_builddir)/eliot-$(VERSION).dmg
 
 .PHONY: package-win32-zip package-macosx
 
@@ -11,13 +13,10 @@
 
 # Prepare the win32 package
 package-win32-zip:
-# Check that the working directory is not already there
-       @if test -e $(WIN32_PACKAGE_DIR); then \
-               echo '$(WIN32_PACKAGE_DIR) is in the way'; \
-               false; \
-       fi
-
+# Remove previous stuff
+       rm -rf $(WIN32_PACKAGE_DIR)
        rm -f eliot-$(VERSION)-win32.zip
+
        mkdir -p $(WIN32_PACKAGE_DIR)
 
 # Copy the binaries and strip them
@@ -45,13 +44,11 @@
        zip -r -9 eliot-$(VERSION)-win32.zip $(WIN32_PACKAGE_DIR)
        rm -rf $(WIN32_PACKAGE_DIR)
 
+
 # Prepare the macosx package
 package-macosx:
-# Check that the working directory is not already there
-       @if test -e $(MACOSX_PACKAGE_DIR); then \
-               echo '$(MACOSX_PACKAGE_DIR) is in the way'; \
-               false; \
-       fi
+# Remove previous stuff
+       rm -rf $(top_builddir)/eliot-$(VERSION)
 
 # Prepare the bundle structure
        mkdir -p $(MACOSX_PACKAGE_DIR)/Contents/MacOS
@@ -70,3 +67,9 @@
        done
        mkdir -p $(MACOSX_PACKAGE_DIR)/locale/qt4
        cp $(QT4LOCALEDIR)/*.qm $(MACOSX_PACKAGE_DIR)/locale/qt4/ || true
+
+# Build the .dmg file
+package-macosx-dmg: package-macosx
+       rm -f $(DMG_FILE)
+       hdiutil create "$(DMG_FILE)" -verbose -scrub -srcfolder 
"$(top_builddir)/eliot-$(VERSION)"
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]