1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = cairomm examples MSVC $(DOCS_SUBDIR) tests
5 ACLOCAL_AMFLAGS = -I m4
7 EXTRA_DIST = MAINTAINERS cairomm-1.0.pc.in
9 DIST_SUBDIRS = $(SUBDIRS)
11 # Install the pkg-config file:
12 pkgconfigdir = $(libdir)/pkgconfig
13 pkgconfig_DATA = cairomm-1.0.pc
15 # Copied from cairo/Makefile.am:
17 # Some custom targets to make it easier to release things.
20 # or make release-publish
22 RELEASE_UPLOAD_HOST = cairographics.org
23 RELEASE_UPLOAD_BASE = /srv/cairo.freedesktop.org/www
24 RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/releases
25 RELEASE_URL_BASE = http://cairographics.org/releases
26 RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org (and CC gnome-announce-list@gnome.org)
27 GIT = $(top_srcdir)/missing --run git
29 #MANUAL_DATED = cairo-manual-`date +%Y%m%d`
30 #MANUAL_TAR_FILE = $(MANUAL_DATED).tar.gz
31 #MANUAL_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)
33 tar_file = $(PACKAGE)-$(VERSION).tar.gz
34 sha1_file = $(tar_file).sha1
35 gpg_file = $(sha1_file).asc
37 $(sha1_file): $(tar_file)
40 $(gpg_file): $(sha1_file)
41 @echo "Please enter your GPG password to sign the checksum."
44 release-verify-even-micro:
45 @echo -n "Checking that $(VERSION) has an even micro component..."
46 @test "$(GENERIC_MICRO_VERSION)" = "`echo $(GENERIC_MICRO_VERSION)/2*2 | bc`" \
47 || (echo "Ouch." && echo "The version micro component '$(GENERIC_MICRO_VERSION)' is not an even number." \
48 && echo "The version in configure.in must be incremented before a new release." \
53 @echo -n "Checking that no $(VERSION) release already exists..."
54 @ssh $(RELEASE_UPLOAD_HOST) test ! -e $(RELEASE_UPLOAD_DIR)/$(tar_file) \
55 || (echo "Ouch." && echo "Found: $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)/$(tar_file)" \
56 && echo "Are you sure you have an updated git checkout?" \
57 && echo "This should never happen." \
62 rm -f $(tar_file) $(sha1_file) $(gpg_file)
64 # Maybe it's just my system, but somehow group sticky bits keep
65 # getting set and this causes failures in un-tarring on some systems.
66 # Until I figure out where the sticky bit is coming from, just clean
67 # these up before building a release.
68 release-cleanup-group-sticky:
69 find . -type f | xargs chmod g-s
71 release-check: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky distcheck
73 release-upload: release-check $(tar_file) $(sha1_file) $(gpg_file)
75 scp $(tar_file) $(sha1_file) $(gpg_file) $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)
76 mv $(tar_file) $(sha1_file) $(gpg_file) releases
77 ssh $(RELEASE_UPLOAD_HOST) "rm -f $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_file) $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
78 $(GIT) tag -s -m "$(PACKAGE) release $(VERSION)" v$(VERSION)
81 (cd docs/reference && $(MAKE) $(AM_MAKEFLAGS) publish)
83 release-publish: release-upload doc-publish releases/$(sha1_file)
85 @echo "Please send an announcement to $(RELEASE_ANNOUNCE_LIST)"
86 @echo "including the following:"
88 @echo "Subject: $(PACKAGE) release $(VERSION) now available"
90 @echo "============================== CUT HERE =============================="
91 @echo "cairomm is a C++ API for the cairo graphics library. For more "
92 @echo "information, see http://cairographics.org/cairomm"
94 @echo "A new $(PACKAGE) release $(VERSION) is now available from:"
96 @echo " $(RELEASE_URL_BASE)/$(tar_file)"
98 @echo " which can be verified with:"
100 @echo " $(RELEASE_URL_BASE)/$(sha1_file)"
102 @cat releases/$(sha1_file)
104 @echo " $(RELEASE_URL_BASE)/$(gpg_file)"
105 @echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
110 @echo "============================== CUT HERE =============================="
111 @echo "Also, please include the new entries from the NEWS file."
113 @echo "Last but not least, do not forget to bump up the micro"
114 @echo "version component to the next (odd) number and commit."
118 (cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-clean)
120 doc-clean: doc-clean-recursive
123 (cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
125 .PHONY: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky release-check release-upload release-publish doc-clean doc-clean-recursive doc-rebuild