1## Copyright (c) 2009 Openismus GmbH <http://www.openismus.com/> 2## 3## This file is part of cairomm. 4## 5## cairomm is free software: you can redistribute it and/or modify it 6## under the terms of the GNU Lesser General Public License as published 7## by the Free Software Foundation, either version 2.1 of the License, 8## or (at your option) any later version. 9## 10## cairomm is distributed in the hope that it will be useful, but 11## WITHOUT ANY WARRANTY; without even the implied warranty of 12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13## See the GNU Lesser General Public License for more details. 14## 15## You should have received a copy of the GNU Lesser General Public License 16## along with this library. If not, see <http://www.gnu.org/licenses/>. 17 18ACLOCAL_AMFLAGS = -I build ${ACLOCAL_FLAGS} 19DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=max 20 21if ENABLE_DOCUMENTATION 22doc_subdirs = docs 23else 24doc_subdirs = 25endif 26SUBDIRS = cairomm examples tests $(doc_subdirs) 27 28cairomm_libincludedir = $(libdir)/$(CAIROMM_MODULE_NAME)/include 29nodist_cairomm_libinclude_HEADERS = cairommconfig.h 30 31pkgconfigdir = $(libdir)/pkgconfig 32nodist_pkgconfig_DATA = $(CAIROMM_INSTALL_PC) 33 34include $(srcdir)/MSVC_Net2013/filelist.am 35 36msvc_files = $(addprefix MSVC_Net2013/,$(msvc_net2013_data)) 37 38dist_noinst_DATA = MAINTAINERS $(msvc_files) 39dist_noinst_SCRIPTS = autogen.sh 40 41DISTCLEANFILES = MSVC_Net2013/cairomm/cairommconfig.h 42 43# Optional: auto-generate the ChangeLog file from the git log on make dist 44include $(top_srcdir)/build/dist-changelog.am 45 46# Copied from cairo/Makefile.am: 47# 48# Some custom targets to make it easier to release things. 49# Use either: 50# make release-check 51# or make release-publish 52 53RELEASE_UPLOAD_HOST = cairographics.org 54RELEASE_UPLOAD_BASE = /srv/cairo.freedesktop.org/www 55RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/releases 56RELEASE_URL_BASE = http://cairographics.org/releases 57RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org (and CC gnome-announce-list@gnome.org) 58GIT = $(top_srcdir)/build/missing --run git 59 60tar_file = $(PACKAGE)-$(VERSION).tar.gz 61sha1_file = $(tar_file).sha1 62gpg_file = $(sha1_file).asc 63 64$(sha1_file): $(tar_file) 65 sha1sum $^ > $@ 66 67$(gpg_file): $(sha1_file) 68 @echo "Please enter your GPG password to sign the checksum." 69 gpg --armor --sign $^ 70 71release-verify-even-micro: 72 @echo -n "Checking that $(PACKAGE_VERSION) has an even micro component..." 73 @test "$(GENERIC_MICRO_VERSION)" = "`echo $(GENERIC_MICRO_VERSION)/2*2 | bc`" \ 74 || (echo "Ouch." && echo "The version micro component '$(GENERIC_MICRO_VERSION)' is not an even number." \ 75 && echo "The version in configure.in must be incremented before a new release." \ 76 && false) 77 @echo "Good." 78 79release-verify-newer: 80 @echo -n "Checking that no $(PACKAGE_VERSION) release already exists..." 81 @ssh $(RELEASE_UPLOAD_HOST) test ! -e $(RELEASE_UPLOAD_DIR)/$(tar_file) \ 82 || (echo "Ouch." && echo "Found: $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)/$(tar_file)" \ 83 && echo "Are you sure you have an updated git checkout?" \ 84 && echo "This should never happen." \ 85 && false) 86 @echo "Good." 87 88release-remove-old: 89 rm -f $(tar_file) $(sha1_file) $(gpg_file) 90 91# Maybe it's just my system, but somehow group sticky bits keep 92# getting set and this causes failures in un-tarring on some systems. 93# Until I figure out where the sticky bit is coming from, just clean 94# these up before building a release. 95release-cleanup-group-sticky: 96 find . -type f | xargs chmod g-s 97 98release-check: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky distcheck 99 100release-upload: release-check $(tar_file) $(sha1_file) $(gpg_file) 101 mkdir -p releases 102 scp $(tar_file) $(sha1_file) $(gpg_file) $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR) 103 mv $(tar_file) $(sha1_file) $(gpg_file) releases 104 ssh $(RELEASE_UPLOAD_HOST) "rm -f $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_file) $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-$(VERSION)" 105 $(GIT) tag -s -m "$(PACKAGE) release $(PACKAGE_VERSION)" v$(PACKAGE_VERSION) 106 107# TODO: Had to remove the doc-publish target for now. 108release-publish: release-upload releases/$(sha1_file) 109 @echo "" 110 @echo "Please send an announcement to $(RELEASE_ANNOUNCE_LIST)" 111 @echo "including the following:" 112 @echo "" 113 @echo "Subject: $(PACKAGE) release $(PACKAGE_VERSION) now available" 114 @echo "" 115 @echo "============================== CUT HERE ==============================" 116 @echo "cairomm is a C++ API for the cairo graphics library. For more " 117 @echo "information, see http://cairographics.org/cairomm" 118 @echo "" 119 @echo "A new $(PACKAGE) release $(PACKAGE_VERSION) is now available from:" 120 @echo "" 121 @echo " $(RELEASE_URL_BASE)/$(tar_file)" 122 @echo "" 123 @echo " which can be verified with:" 124 @echo "" 125 @echo " $(RELEASE_URL_BASE)/$(sha1_file)" 126 @echo -n " " 127 @cat releases/$(sha1_file) 128 @echo "" 129 @echo " $(RELEASE_URL_BASE)/$(gpg_file)" 130 @echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)" 131 @echo "" 132 @echo "WHAT'S NEW" 133 @echo "==========" 134 @echo "" 135 @echo "============================== CUT HERE ==============================" 136 @echo "Also, please include the new entries from the NEWS file." 137 @echo "" 138 @echo "Last but not least, do not forget to bump up the micro" 139 @echo "version component to the next (odd) number and commit." 140 141.PHONY: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky release-check release-upload release-publish 142