]> granicus.if.org Git - handbrake/commitdiff
Changes to the Cygwin section of the make file. Allows building of zip packages for...
authorsr55 <sr55.hb@outlook.com>
Sun, 21 Dec 2008 17:31:36 +0000 (17:31 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 21 Dec 2008 17:31:36 +0000 (17:31 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2042 b64f7644-9d1e-0410-96f1-a4d463321fa5

Makefile

index ced2d955bcf1f2defeb60f4a42c807fa8aac30c7..8fb332c62d4259f75018f0c436ea0a8e09f9dc52 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,15 @@ endif
 #
 ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)
 
+snapshot: unstable-libhb/hbversion.h all
+       (rm -rf HandBrake HandBrake*.zip ; mkdir -p HandBrake/api HandBrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ;  cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; cp /bin/cygwin1.dll HandBrake ; zip -r HandBrake-$(SNAP_HB_VERSION)-Win_CLI.zip HandBrake ; rm -rf HandBrake )
+
+official: force-hbversion all
+       (rm -rf HandBrake HandBrake*.zip ; mkdir -p HandBrake/api HandBrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ;  cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; cp /bin/cygwin1.dll HandBrake ;  zip -r HandBrake-$(HB_VERSION)-Win_GUI.zip HandBrake ; rm -rf HandBrake )
+
+force-hbversion:
+       rm -f libhb/hbversion.h
+    
 all:    contrib/.contrib HandBrakeCLI
 
 contrib/.contrib:
@@ -114,12 +123,18 @@ clean:
        @$(MAKE) --no-print-directory -C libhb clean
        @$(MAKE) --no-print-directory -C test clean
        @rm libhb/hbversion.h
+       @rm -f contrib/config.cache
+       @rm -f HandBrake HandBrake*.zip
 
 mrproper: clean
        @$(MAKE) --no-print-directory -C contrib mrproper
 
 endif
 
+#
+# Version Data
+#
+
 libhb/hbversion.h:
        echo "#ifndef HB_BUILD" > libhb/hbversion.h
        echo "#define HB_BUILD $(HB_BUILD)" >> libhb/hbversion.h