1# include this snippet to add a common release: target by using 2# include $(top_srcdir)/common/release.mak 3 4release: dist 5 @$(MAKE) $(PACKAGE)-$(VERSION).tar.xz.sha256sum 6 @echo 7 @echo "=================================================================================================" 8 @echo "http://gstreamer.freedesktop.org/src/$(PACKAGE)/$(PACKAGE)-$(VERSION).tar.xz" 9 @cat $(PACKAGE)-$(VERSION).tar.xz.sha256sum 10 @echo "=================================================================================================" 11 @if [ -d ~/releases/ ]; then \ 12 cp -v $(PACKAGE)-$(VERSION).tar.xz ~/releases/; \ 13 fi 14 @if [ -d ../www/data/src ]; then \ 15 mv -v $(PACKAGE)-$(VERSION).tar.xz ../www/data/src/$(PACKAGE)/ ; \ 16 mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../www/data/src/$(PACKAGE)/ ; \ 17 elif [ -d ../../www/data/src ]; then \ 18 mv -v $(PACKAGE)-$(VERSION).tar.xz ../../www/data/src/$(PACKAGE)/ ; \ 19 mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../../www/data/src/$(PACKAGE)/ ; \ 20 fi 21 @echo "=================================================================================================" 22 23# generate sha256 sum files 24%.sha256sum: % 25 @sha256sum $< > $@ 26 27# check that no marshal or enumtypes files are included 28# this in turn ensures that distcheck fails for missing .list files which is currently 29# shadowed when the corresponding .c and .h files are included. 30distcheck-hook: 31 @test "x" = "x`find $(distdir) -name \*-enumtypes.[ch] | grep -v win32`" && \ 32 test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \ 33 ( echo "*** Leftover enumtypes or marshal files in the tarball." && \ 34 echo "*** Make sure the following files are not disted:" && \ 35 find $(distdir) -name \*-enumtypes.[ch] | grep -v win32 && \ 36 find $(distdir) -name \*-marshal.[ch] && \ 37 false ) 38 39dist-hook: 40 @if test -f meson.build && ! $(GREP) -e "version.*'$(VERSION)'" meson.build >/dev/null ; then \ 41 echo "*******************************************************"; \ 42 echo "* meson.build needs to be updated for version $(VERSION)"; \ 43 echo "*******************************************************"; \ 44 false; \ 45 fi 46