From: sr55 Date: Sun, 21 Dec 2008 17:31:36 +0000 (+0000) Subject: Changes to the Cygwin section of the make file. Allows building of zip packages for... X-Git-Tag: 0.9.4~915 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a98e870f0f22441aeeb3fc484ae81b8dabc1b533;p=handbrake Changes to the Cygwin section of the make file. Allows building of zip packages for official and snapshot builds of the CLI using "make official" and "make snapshot" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2042 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/Makefile b/Makefile index ced2d955b..8fb332c62 100644 --- 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