Blame common/release.mak

Packit 971217
# include this snippet to add a common release: target by using
Packit 971217
# include $(top_srcdir)/common/release.mak
Packit 971217
Packit 971217
release: dist
Packit 971217
	@$(MAKE) $(PACKAGE)-$(VERSION).tar.xz.sha256sum
Packit 971217
	@echo
Packit 971217
	@echo "================================================================================================="
Packit 971217
	@echo "http://gstreamer.freedesktop.org/src/$(PACKAGE)/$(PACKAGE)-$(VERSION).tar.xz"
Packit 971217
	@cat $(PACKAGE)-$(VERSION).tar.xz.sha256sum
Packit 971217
	@echo "================================================================================================="
Packit 971217
	@if [ -d ~/releases/ ]; then \
Packit 971217
	  cp -v $(PACKAGE)-$(VERSION).tar.xz ~/releases/; \
Packit 971217
	fi
Packit 971217
	@if [ -d ../www/data/src ]; then \
Packit 971217
	  mv -v $(PACKAGE)-$(VERSION).tar.xz ../www/data/src/$(PACKAGE)/ ; \
Packit 971217
	  mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../www/data/src/$(PACKAGE)/ ; \
Packit 971217
	elif [ -d ../../www/data/src ]; then \
Packit 971217
	  mv -v $(PACKAGE)-$(VERSION).tar.xz ../../www/data/src/$(PACKAGE)/ ; \
Packit 971217
	  mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../../www/data/src/$(PACKAGE)/ ; \
Packit 971217
	fi
Packit 971217
	@echo "================================================================================================="
Packit 971217
Packit 971217
# generate sha256 sum files
Packit 971217
%.sha256sum: %
Packit 971217
	@sha256sum $< > $@
Packit 971217
Packit 971217
# check that no marshal or enumtypes files are included
Packit 971217
# this in turn ensures that distcheck fails for missing .list files which is currently
Packit 971217
# shadowed when the corresponding .c and .h files are included.
Packit 971217
distcheck-hook:
Packit 971217
	@test "x" = "x`find $(distdir) -name \*-enumtypes.[ch] | grep -v win32`" && \
Packit 971217
	test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \
Packit 971217
	( echo "*** Leftover enumtypes or marshal files in the tarball." && \
Packit 971217
	  echo "*** Make sure the following files are not disted:" && \
Packit 971217
	  find $(distdir) -name \*-enumtypes.[ch] | grep -v win32 && \
Packit 971217
	  find $(distdir) -name \*-marshal.[ch] && \
Packit 971217
	  false )
Packit 971217
Packit 971217
dist-hook:
Packit 971217
	@if test -f meson.build && ! $(GREP) -e "version.*'$(VERSION)'" meson.build >/dev/null ; then \
Packit 971217
	  echo "*******************************************************"; \
Packit 971217
	  echo "* meson.build needs to be updated for version $(VERSION)"; \
Packit 971217
	  echo "*******************************************************"; \
Packit 971217
	  false; \
Packit 971217
	fi