|
rpm-build |
9a349e |
AUTOMAKE_OPTIONS = foreign
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
SUBDIRS = libspectre
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
if ENABLE_TEST
|
|
rpm-build |
9a349e |
SUBDIRS += test
|
|
rpm-build |
9a349e |
endif
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
EXTRA_DIST = \
|
|
rpm-build |
9a349e |
AUTHORS \
|
|
rpm-build |
9a349e |
Doxyfile.in \
|
|
rpm-build |
9a349e |
INSTALL \
|
|
rpm-build |
9a349e |
README \
|
|
rpm-build |
9a349e |
libspectre.pc.in
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
pkgconfigdir = $(libdir)/pkgconfig
|
|
rpm-build |
9a349e |
pkgconfig_DATA = libspectre.pc
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
DISTCLEANFILES = \
|
|
rpm-build |
9a349e |
$(pkgconfig_DATA) \
|
|
rpm-build |
9a349e |
Doxyfile \
|
|
rpm-build |
9a349e |
ChangeLog
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
dist-hook: changelog
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
changelog:
|
|
rpm-build |
9a349e |
@if test -d "$(srcdir)/.git"; then \
|
|
rpm-build |
9a349e |
git log --stat > ChangeLog; \
|
|
rpm-build |
9a349e |
cp ChangeLog $(distdir)/; \
|
|
rpm-build |
9a349e |
fi
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
doc: Doxyfile
|
|
rpm-build |
9a349e |
doxygen Doxyfile
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
# Releasing stuff based on Cairo
|
|
rpm-build |
9a349e |
# Some custom targets to make it easier to release things.
|
|
rpm-build |
9a349e |
# To make real stable releases use:
|
|
rpm-build |
9a349e |
# make release-publish
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
RELEASE_UPLOAD_HOST = libspectre.freedesktop.org
|
|
rpm-build |
9a349e |
RELEASE_UPLOAD_BASE = /srv/$(RELEASE_UPLOAD_HOST)/www
|
|
rpm-build |
9a349e |
RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/releases
|
|
rpm-build |
9a349e |
RELEASE_URL_BASE = http://$(RELEASE_UPLOAD_HOST)/releases
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
MANUAL_DATED = libspectre-manual-`date +%Y%m%d`
|
|
rpm-build |
9a349e |
MANUAL_TAR_FILE = $(MANUAL_DATED).tar.gz
|
|
rpm-build |
9a349e |
MANUAL_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
tar_file = $(PACKAGE)-$(VERSION).tar.gz
|
|
rpm-build |
9a349e |
sha1_file = $(tar_file).sha1
|
|
rpm-build |
9a349e |
gpg_file = $(sha1_file).asc
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
$(sha1_file): $(tar_file)
|
|
rpm-build |
9a349e |
sha1sum $^ > $@
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
$(gpg_file): $(sha1_file)
|
|
rpm-build |
9a349e |
@echo "Please enter your GPG password to sign the checksum."
|
|
rpm-build |
9a349e |
gpg --armor --sign $^
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-verify-soname-major:
|
|
rpm-build |
9a349e |
@echo -n "Checking that the libspectre soname major number is 1..."
|
|
rpm-build |
9a349e |
@test "$(LT_CURRENT_MINUS_AGE)" = "1" \
|
|
rpm-build |
9a349e |
|| (echo "Ouch." && echo "The soname major number is $(LT_CURRENT_MINUS_AGE) instead of 1." \
|
|
rpm-build |
9a349e |
&& echo "The libtool shared library version numbers in configure.ac must be incremented properly." \
|
|
rpm-build |
9a349e |
&& false)
|
|
rpm-build |
9a349e |
@echo "Good."
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-verify-newer:
|
|
rpm-build |
9a349e |
@echo -n "Checking that no $(VERSION) release already exists..."
|
|
rpm-build |
9a349e |
@ssh $(RELEASE_UPLOAD_HOST) test ! -e $(RELEASE_UPLOAD_DIR)/$(tar_file) \
|
|
rpm-build |
9a349e |
|| (echo "Ouch." && echo "Found: $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)/$(tar_file)" \
|
|
rpm-build |
9a349e |
&& echo "Are you sure you have an updated checkout?" \
|
|
rpm-build |
9a349e |
&& echo "This should never happen." \
|
|
rpm-build |
9a349e |
&& false)
|
|
rpm-build |
9a349e |
@echo "Good."
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-remove-old:
|
|
rpm-build |
9a349e |
$(RM) $(tar_file) $(sha1_file) $(gpg_file)
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-cleanup-group-sticky:
|
|
rpm-build |
9a349e |
find . -type f | xargs chmod g-s
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-check: release-verify-soname-major release-verify-newer release-remove-old release-cleanup-group-sticky distcheck
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-upload: release-check $(tar_file) $(sha1_file) $(gpg_file)
|
|
rpm-build |
9a349e |
mkdir -p releases
|
|
rpm-build |
9a349e |
scp $(tar_file) $(sha1_file) $(gpg_file) $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)
|
|
rpm-build |
9a349e |
mv $(tar_file) $(sha1_file) $(gpg_file) releases
|
|
rpm-build |
9a349e |
ssh $(RELEASE_UPLOAD_HOST) "rm -f $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_file) $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
|
|
rpm-build |
9a349e |
git tag -s -m "libspectre $(SPECTRE_MAJOR_VERSION).$(SPECTRE_MINOR_VERSION).$(SPECTRE_MICRO_VERSION) release" $(SPECTRE_MAJOR_VERSION).$(SPECTRE_MINOR_VERSION).$(SPECTRE_MICRO_VERSION)
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-publish-message: releases/$(sha1_file)
|
|
rpm-build |
9a349e |
@echo "Please follow the instructions in RELEASING to push stuff out and"
|
|
rpm-build |
9a349e |
@echo "send out the announcement mails. Here is the excerpt you need:"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo "Subject: $(PACKAGE) release $(VERSION) now available"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo "============================== CUT HERE =============================="
|
|
rpm-build |
9a349e |
@echo "A new $(PACKAGE) release $(VERSION) is now available from:"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " $(RELEASE_URL_BASE)/$(tar_file)"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " which can be verified with:"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " $(RELEASE_URL_BASE)/$(sha1_file)"
|
|
rpm-build |
9a349e |
@echo -n " "
|
|
rpm-build |
9a349e |
@cat releases/$(sha1_file)
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " $(RELEASE_URL_BASE)/$(gpg_file)"
|
|
rpm-build |
9a349e |
@echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " Additionally, a git clone of the source tree:"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " git clone git://anongit.freedesktop.org/git/libspectre"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " will include a signed $(VERSION) tag which points to a commit named:"
|
|
rpm-build |
9a349e |
@echo " `git cat-file tag $(VERSION) | grep ^object | sed -e 's,object ,,'`"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " which can be verified with:"
|
|
rpm-build |
9a349e |
@echo " git verify-tag $(VERSION)"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo " and can be checked out with a command such as:"
|
|
rpm-build |
9a349e |
@echo " git checkout -b build $(VERSION)"
|
|
rpm-build |
9a349e |
@echo ""
|
|
rpm-build |
9a349e |
@echo "============================== CUT HERE =============================="
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
release-publish: release-upload release-publish-message
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
doc-publish: doc
|
|
rpm-build |
9a349e |
cp -a doc/html $(MANUAL_DATED)
|
|
rpm-build |
9a349e |
tar czf $(MANUAL_TAR_FILE) $(MANUAL_DATED)
|
|
rpm-build |
9a349e |
scp $(MANUAL_TAR_FILE) $(RELEASE_UPLOAD_HOST):$(MANUAL_UPLOAD_DIR)
|
|
rpm-build |
9a349e |
ssh $(RELEASE_UPLOAD_HOST) "cd $(MANUAL_UPLOAD_DIR) && tar xzf $(MANUAL_TAR_FILE) && rm -f manual && ln -s $(MANUAL_DATED) manual && ln -sf $(MANUAL_TAR_FILE) libspectre-manual.tar.gz"
|
|
rpm-build |
9a349e |
|
|
rpm-build |
9a349e |
.PHONY: release-verify-newer release-remove-old release-cleanup-group-sticky release-check release-upload release-publish doc-publish changelog
|