Bilinear REPEAT_NORMAL source line extension for too short src_width
[profile/ivi/pixman.git] / Makefile.am
1 SUBDIRS = pixman demos test
2
3 pkgconfigdir=$(libdir)/pkgconfig
4 pkgconfig_DATA=pixman-1.pc
5
6 $(pkgconfig_DATA): pixman-1.pc.in
7
8 snapshot:
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
12
13 GPGKEY=6FF7C1A8
14 USERNAME=$$USER
15 RELEASE_OR_SNAPSHOT = $$(if test "x$(PIXMAN_VERSION_MINOR)" = "x$$(echo "$(PIXMAN_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/$(RELEASE_OR_SNAPSHOT)s
18 RELEASE_CAIRO_URL =     http://cairographics.org/$(RELEASE_OR_SNAPSHOT)s
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
23
24 tar_gz = $(PACKAGE)-$(VERSION).tar.gz
25 tar_bz2 = $(PACKAGE)-$(VERSION).tar.bz2
26
27 sha1_tgz = $(tar_gz).sha1
28 md5_tgz = $(tar_gz).md5
29
30 sha1_tbz2 = $(tar_bz2).sha1
31 md5_tbz2 = $(tar_bz2).md5
32
33 gpg_file = $(sha1_tgz).asc
34
35 $(sha1_tgz): $(tar_gz)
36         sha1sum $^ > $@
37
38 $(md5_tgz): $(tar_gz)
39         md5sum $^ > $@
40
41 $(sha1_tbz2): $(tar_bz2)
42         sha1sum $^ > $@
43
44 $(md5_tbz2): $(tar_bz2)
45         md5sum $^ > $@
46
47 $(gpg_file): $(sha1_tgz)
48         @echo "Please enter your GPG password to sign the checksum."
49         gpg --armor --sign $^ 
50
51 HASHFILES = $(sha1_tgz) $(sha1_tbz2) $(md5_tgz) $(md5_tbz2)
52
53 release-verify-newer:
54         @echo -n "Checking that no $(VERSION) release already exists at $(RELEASE_XORG_HOST)..."
55         @ssh $(RELEASE_XORG_HOST) test ! -e $(RELEASE_XORG_DIR)/$(tar_gz) \
56                 || (echo "Ouch." && echo "Found: $(RELEASE_XORG_HOST):$(RELEASE_XORG_DIR)/$(tar_gz)" \
57                 && echo "Refusing to try to generate a new release of the same name." \
58                 && false)
59         @ssh $(RELEASE_CAIRO_HOST) test ! -e $(RELEASE_CAIRO_DIR)/$(tar_gz) \
60                 || (echo "Ouch." && echo "Found: $(RELEASE_CAIRO_HOST):$(RELEASE_CAIRO_DIR)/$(tar_gz)" \
61                 && echo "Refusing to try to generate a new release of the same name." \
62                 && false)
63         @echo "Good."
64
65 release-remove-old:
66         $(RM) $(tar_gz) $(tar_bz2) $(HASHFILES) $(gpg_file)
67
68 ensure-prev:
69         @if [[ "$(PREV)" == "" ]]; then                                                 \
70                 echo ""                                                           &&    \
71                 echo "You must set the PREV variable on the make command line to" &&    \
72                 echo "the last version."                                          &&    \
73                 echo ""                                                           &&    \
74                 echo "For example:"                                               &&    \
75                 echo "      make PREV=0.7.3"                                      &&    \
76                 echo ""                                                           &&    \
77                 false;                                                                  \
78         fi
79
80 release-check: ensure-prev release-verify-newer release-remove-old distcheck
81
82 release-tag:
83         git tag -u $(GPGKEY) -m "$(PACKAGE) $(VERSION) release" $(PACKAGE)-$(VERSION)
84
85 release-upload: release-check $(tar_gz) $(tar_bz2) $(sha1_tgz) $(sha1_tbz2) $(md5_tgz) $(gpg_file)
86         scp $(tar_gz) $(sha1_tgz) $(gpg_file) $(RELEASE_CAIRO_HOST):$(RELEASE_CAIRO_DIR)
87         scp $(tar_gz) $(tar_bz2) $(RELEASE_XORG_HOST):$(RELEASE_XORG_DIR)
88         ssh $(RELEASE_CAIRO_HOST) "rm -f $(RELEASE_CAIRO_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_gz) $(RELEASE_CAIRO_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
89
90 release-publish-message: $(HASHFILES) ensure-prev
91         @echo "Please follow the instructions in RELEASING to push stuff out and"
92         @echo "send out the announcement mails.  Here is the excerpt you need:"
93         @echo ""
94         @echo "Lists:  $(RELEASE_ANNOUNCE_LIST)"
95         @echo "Subject: [ANNOUNCE] $(PACKAGE) release $(VERSION) now available"
96         @echo "============================== CUT HERE =============================="
97         @echo "A new $(PACKAGE) release $(VERSION) is now available"
98         @echo ""
99         @echo "tar.gz:"
100         @echo " $(RELEASE_CAIRO_URL)/$(tar_gz)"
101         @echo " $(RELEASE_XORG_URL)/$(tar_gz)"
102         @echo ""
103         @echo "tar.bz2:"
104         @echo " $(RELEASE_XORG_URL)/$(tar_bz2)"
105         @echo ""
106         @echo "Hashes:"
107         @echo -n "      MD5:  "
108         @cat $(md5_tgz)
109         @echo -n "      MD5:  "
110         @cat $(md5_tbz2)
111         @echo -n "      SHA1: "
112         @cat $(sha1_tgz)
113         @echo -n "      SHA1: "
114         @cat $(sha1_tbz2)
115         @echo ""
116         @echo "GPG signature:"
117         @echo " $(RELEASE_CAIRO_URL)/$(gpg_file)"
118         @echo " (signed by `git config --get user.name` <`git config --get user.email`>)"
119         @echo ""
120         @echo "Git:"
121         @echo " git://git.freedesktop.org/git/pixman"
122         @echo " tag: $(PACKAGE)-$(VERSION)"
123         @echo ""
124         @echo "Log:"
125         @git log --no-merges "$(PACKAGE)-$(PREV)".."$(PACKAGE)-$(VERSION)" | git shortlog | awk '{ printf "\t"; print ; }' | cut -b1-80
126         @echo "============================== CUT HERE =============================="
127         @echo ""
128
129 release-publish: release-upload release-tag release-publish-message
130
131 .PHONY: release-upload release-publish release-publish-message release-tag