* added methods for pich bender/pgm change/aftertouch to MidiEvent
[ardour.git] / libs / cairomm / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = cairomm examples MSVC $(DOCS_SUBDIR) tests
4 #docs examples
5 ACLOCAL_AMFLAGS = -I m4
6
7 EXTRA_DIST = MAINTAINERS cairomm-1.0.pc.in
8
9 DIST_SUBDIRS = $(SUBDIRS)
10
11 # Install the pkg-config file:
12 pkgconfigdir = $(libdir)/pkgconfig
13 pkgconfig_DATA = cairomm-1.0.pc
14
15 # Copied from cairo/Makefile.am:
16 #
17 # Some custom targets to make it easier to release things.
18 # Use either:
19 #               make release-check
20 # or            make release-publish
21
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
28
29 #MANUAL_DATED =         cairo-manual-`date +%Y%m%d`
30 #MANUAL_TAR_FILE =      $(MANUAL_DATED).tar.gz
31 #MANUAL_UPLOAD_DIR =    $(RELEASE_UPLOAD_BASE)
32
33 tar_file = $(PACKAGE)-$(VERSION).tar.gz
34 sha1_file = $(tar_file).sha1
35 gpg_file = $(sha1_file).asc
36
37 $(sha1_file): $(tar_file)
38         sha1sum $^ > $@
39
40 $(gpg_file): $(sha1_file)
41         @echo "Please enter your GPG password to sign the checksum."
42         gpg --armor --sign $^ 
43
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." \
49                 && false)
50         @echo "Good."
51
52 release-verify-newer:
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." \
58                 && false)
59         @echo "Good."
60
61 release-remove-old:
62         rm -f $(tar_file) $(sha1_file) $(gpg_file)
63
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
70
71 release-check: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky distcheck
72
73 release-upload: release-check $(tar_file) $(sha1_file) $(gpg_file)
74         mkdir -p releases
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)
79
80 doc-publish:
81         (cd docs/reference && $(MAKE) $(AM_MAKEFLAGS) publish)
82
83 release-publish: release-upload doc-publish releases/$(sha1_file)
84         @echo ""
85         @echo "Please send an announcement to $(RELEASE_ANNOUNCE_LIST)"
86         @echo "including the following:"
87         @echo ""
88         @echo "Subject: $(PACKAGE) release $(VERSION) now available"
89         @echo ""
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"
93         @echo ""
94         @echo "A new $(PACKAGE) release $(VERSION) is now available from:"
95         @echo ""
96         @echo " $(RELEASE_URL_BASE)/$(tar_file)"
97         @echo ""
98         @echo "    which can be verified with:"
99         @echo ""
100         @echo " $(RELEASE_URL_BASE)/$(sha1_file)"
101         @echo -n "      "
102         @cat releases/$(sha1_file)
103         @echo ""
104         @echo " $(RELEASE_URL_BASE)/$(gpg_file)"
105         @echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
106         @echo ""
107         @echo "WHAT'S NEW"
108         @echo "=========="
109         @echo ""
110         @echo "============================== CUT HERE =============================="
111         @echo "Also, please include the new entries from the NEWS file."
112         @echo ""
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."
115
116
117 doc-clean-recursive:
118         (cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-clean)
119
120 doc-clean: doc-clean-recursive
121
122 doc-rebuild:
123         (cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
124
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
126