diff options
author | sr55 <[email protected]> | 2008-12-21 17:31:36 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-12-21 17:31:36 +0000 |
commit | a98e870f0f22441aeeb3fc484ae81b8dabc1b533 (patch) | |
tree | 53684ce7065218a1b4f34e67f873ffb703ad9996 | |
parent | 0580ae3259179dd298e4fc49bf17846f4f8dda7d (diff) |
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
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |