3 pkgconfigdir=$(libdir)/pkgconfig
4 pkgconfig_DATA=pixman-1.pc
6 $(pkgconfig_DATA): pixman-1.pc.in
9 distdir="$(distdir)-`date '+%Y%m%d'`"; \
10 test -d "$(srcdir)/.git" && distdir=$$distdir-`cd "$(srcdir)" && git-rev-parse HEAD | cut -c 1-6`; \
11 $(MAKE) $(AM_MAKEFLAGS) distdir="$$distdir" dist
15 RELEASE_OR_SNAPSHOT = $$(if test "x$(CAIRO_VERSION_MINOR)" = "x$$(echo "$(CAIRO_VERSION_MINOR)/2*2" | bc)" ; then echo release; else echo snapshot; fi)
16 RELEASE_CAIRO_HOST = $(USERNAME)@cairographics.org
17 RELEASE_CAIRO_DIR = /srv/cairo.freedesktop.org/www/releases
18 RELEASE_CAIRO_URL = http://cairographics.org/releases
19 RELEASE_XORG_URL = http://xorg.freedesktop.org/archive/individual/lib
20 RELEASE_XORG_HOST = $(USERNAME)@xorg.freedesktop.org
21 RELEASE_XORG_DIR = /srv/xorg.freedesktop.org/archive/individual/lib
22 RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org, xorg-announce@lists.freedesktop.org
24 tar_gz = $(PACKAGE)-$(VERSION).tar.gz
25 tar_bz2 = $(PACKAGE)-$(VERSION).tar.bz2
27 sha1_tgz = $(tar_gz).sha1
28 md5_tgz = $(tar_gz).md5
30 sha1_tbz2 = $(tar_bz2).sha1
31 md5_tbz2 = $(tar_bz2).md5
33 gpg_file = $(sha1_tgz).asc
35 $(sha1_tgz): $(tar_gz)
41 $(sha1_tbz2): $(tar_bz2)
44 $(md5_tbz2): $(tar_bz2)
47 $(gpg_file): $(sha1_tgz)
48 @echo "Please enter your GPG password to sign the checksum."
52 @echo -n "Checking that no $(VERSION) release already exists at $(RELEASE_XORG_HOST)..."
53 @ssh $(RELEASE_XORG_HOST) test ! -e $(RELEASE_XORG_DIR)/$(tar_gz) \
54 || (echo "Ouch." && echo "Found: $(RELEASE_XORG_HOST):$(RELEASE_XORG_DIR)/$(tar_gz)" \
55 && echo "Refusing to try to generate a new release of the same name." \
57 @ssh $(RELEASE_CAIRO_HOST) test ! -e $(RELEASE_CAIRO_DIR)/$(tar_gz) \
58 || (echo "Ouch." && echo "Found: $(RELEASE_CAIRO_HOST):$(RELEASE_CAIRO_DIR)/$(tar_gz)" \
59 && echo "Refusing to try to generate a new release of the same name." \
64 $(RM) $(tar_gz) $(tar_bz2) $(sha1_tgz) $(gpg_file)
67 @if [[ "$(PREV)" == "" ]]; then \
69 echo "You must set the PREV variable on the make command line to" && \
70 echo "the last version." && \
72 echo "For example:" && \
73 echo " make PREV=0.7.3" && \
78 release-check: ensure-prev release-verify-newer release-remove-old distcheck
81 git-tag -u $(GPGKEY) -m "$(PACKAGE) $(VERSION) release" $(PACKAGE)-$(VERSION)
83 release-upload: release-check $(tar_gz) $(tar_bz2) $(sha1_tgz) $(gpg_file)
85 scp $(tar_gz) $(sha1_tgz) $(gpg_file) $(RELEASE_CAIRO_HOST):$(RELEASE_CAIRO_DIR)
86 scp $(tar_gz) $(tar_bz2) $(RELEASE_XORG_HOST):$(RELEASE_XORG_DIR)
87 ssh $(RELEASE_CAIRO_HOST) "rm -f $(RELEASE_CAIRO_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_gz) $(RELEASE_CAIRO_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
89 release-publish-message: $(sha1_tgz) $(md5_tgz) $(sha1_tbz2) $(md5_tbz2) ensure-prev
90 @echo "Please follow the instructions in RELEASING to push stuff out and"
91 @echo "send out the announcement mails. Here is the excerpt you need:"
93 @echo "Lists: $(RELEASE_ANNOUNCE_LIST)"
94 @echo "Subject: [ANNOUNCE] $(PACKAGE) release $(VERSION) now available"
95 @echo "============================== CUT HERE =============================="
96 @echo "A new $(PACKAGE) release $(VERSION) is now available"
99 @echo " $(RELEASE_CAIRO_URL)/$(tar_gz)"
100 @echo " $(RELEASE_XORG_URL)/$(tar_gz)"
103 @echo " $(RELEASE_XORG_URL)/$(tar_bz2)"
115 @echo "GPG signature:"
116 @echo " $(RELEASE_CAIRO_URL)/$(gpg_file)"
117 @echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
120 @echo " git://git.freedesktop.org/git/pixman"
121 @echo " tag: $(PACKAGE)-$(VERSION)"
124 @git-log --no-merges "$(PACKAGE)-$(PREV)".."$(PACKAGE)-$(VERSION)" | git shortlog | awk '{ printf "\t"; print ; }' | cut -b1-80
125 @echo "============================== CUT HERE =============================="
128 release-publish: release-upload release-tag release-publish-message
130 .PHONY: release-upload release-publish release-publish-message release-tag