GPG_SIGN_TAGS =
copyright: COPYING
COPYING: Makefile.maint linuxdoc-tools.copyright sgmls-1.1/LICENSE iso-entities/COPYING entity-map/COPYING
echo "----------------------------------" > $@
echo " The linuxdoc-tools license" >> $@
echo "----------------------------------" >> $@
cat linuxdoc-tools.copyright >> $@
echo "" >> $@
echo "----------------------------------" >> $@
echo " The sgmls license" >> $@
echo "----------------------------------" >> $@
echo "" >> $@
cat sgmls-1.1/LICENSE >> $@
# sp is no longer included.
# echo "----------------------------------" >> $@
# echo " The sp license" >> $@
# echo "----------------------------------" >> $@
# cat sp/COPYING >> $@
echo "" >> $@
echo "----------------------------------" >> $@
echo " The iso-entities license" >> $@
echo "----------------------------------" >> $@
echo "" >> $@
cat iso-entities/COPYING >> $@
echo "" >> $@
echo "----------------------------------" >> $@
echo " The entity-map license" >> $@
echo "----------------------------------" >> $@
echo "" >> $@
cat entity-map/COPYING >> $@
set-signed-tags: GPG_SIGN_TAGS = -s
set-signed-tags: set-tags
set-tags: VERSION = $(shell cat VERSION)
set-tags:
git tag $(GPG_SIGN_TAGS) upstream/$(VERSION) -m "Upstream version $(VERSION). Debian like tag."
git tag $(GPG_SIGN_TAGS) v$(VERSION) -m "Upstream version $(VERSION). Slash free tag."
tarball: VERSION = $(shell cat VERSION)
tarball: GIT_STATUS = $(shell git status --porcelain)
tarball: TARBALL = ../linuxdoc-tools-$(VERSION).tar.gz
tarball:
$(if $(wildcard ../linuxdoc-tools-$(VERSION).tar.gz), \
$(error "../linuxdoc-tools-$(VERSION).tar.gz tarball already exists. Skipping"))
@if test -z "$(GIT_STATUS)"; then \
git archive --format tar.gz \
--prefix linuxdoc-tools-$(VERSION)/ \
--output $(TARBALL) HEAD; \
else echo "$(GIT_STATUS)"; fi
tarball+sums: VERSION = $(shell cat VERSION)
tarball+sums: TARBALL = linuxdoc-tools-$(VERSION).tar.gz
tarball+sums: tarball
( cd .. && ( \
[ -z "`which md5sum`" ] || md5sum $(TARBALL); \
[ -z "`which sha1sum`" ] || sha1sum $(TARBALL); \
[ -z "`which sha256sum`" ] || sha256sum $(TARBALL); \
[ -z "`which sha512sum`" ] || sha512sum $(TARBALL); ))
# Local Variables:
# mode: makefile
# End: