summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
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