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