PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Makefile.top

#
Unknown | 126 lines | 110 code | 16 blank | 0 comment | 0 complexity | 147f8a9367a726848e75785b4ee9518b MD5 | raw file
  1## -*- makefile -*-
  2##
  3## Include file for automake
  4##
  5## Copyright (C) 2008, 2009 Francesco Salvestrini
  6##
  7## This program is free software; you can redistribute it and/or modify
  8## it under the terms of the GNU General Public License as published by
  9## the Free Software Foundation; either version 2 of the License, or
 10## (at your option) any later version.
 11##
 12## This program is distributed in the hope that it will be useful,
 13## but WITHOUT ANY WARRANTY; without even the implied warranty of
 14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 15## GNU General Public License for more details.
 16##
 17## You should have received a copy of the GNU General Public License along
 18## with this program; if not, write to the Free Software Foundation, Inc.,
 19## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 20##
 21
 22##
 23## Maintainer related targets
 24##
 25
 26BUILT_SOURCES += $(top_srcdir)/.version
 27
 28$(top_srcdir)/.version:
 29	echo $(VERSION) > $@-t && mv $@-t $@
 30
 31dist-hook-version:
 32	echo $(VERSION) > $(distdir)/.tarball-version
 33
 34EXTRA_DIST += $(DNT_DB) AUTHORS.in
 35
 36TODO: $(DNT_DB)
 37	$(DNT_BIN)				\
 38	       --database=$(DNT_DB)		\
 39	       --mono				\
 40	       show				\
 41	       --filter="not done"		\
 42	       --line-format="* %t"		\
 43	       --width=78			\
 44	       --indent-fill=""			\
 45	       --unindent-fill=""		\
 46	       --level-fill=""			\
 47	       --output=TODO || {		\
 48		rm -f TODO ;			\
 49		exit 1 ;			\
 50	}
 51MAINTAINERCLEANFILES += TODO
 52EXTRA_DIST           += TODO
 53
 54.releases:
 55	$(GITTAG_TO_DATE) > .releases || {	\
 56		rm -f .releases ;		\
 57		exit 1 ;			\
 58	}
 59MAINTAINERCLEANFILES += .releases
 60EXTRA_DIST           += .releases
 61
 62NEWS: $(DNT_DB) .releases
 63	DNT_BIN="$(DNT_BIN)"			\
 64	DNT_DB="$(DNT_DB)"			\
 65	$(RELEASES_TO_NEWS) .releases NEWS || {	\
 66		rm -f NEWS ;			\
 67		exit 1 ;			\
 68	}
 69MAINTAINERCLEANFILES += NEWS
 70EXTRA_DIST           += NEWS
 71
 72AUTHORS:
 73	rm -f AUTHORS                       &&				   \
 74	touch AUTHORS                       &&				   \
 75	cat $(srcdir)/AUTHORS.in >> AUTHORS &&				   \
 76	$(GITLOG_TO_COMMITTERS) | $(SED) -e 's,\(.*\),  \1,' >> AUTHORS && \
 77	echo "" >> AUTHORS                  || {			   \
 78	        rm -f AUTHORS ;						   \
 79	        exit 1 ;						   \
 80	}
 81MAINTAINERCLEANFILES += AUTHORS
 82EXTRA_DIST           += AUTHORS
 83
 84ChangeLog:
 85	$(GITLOG_TO_CHANGELOG) > ChangeLog || {	\
 86		rm -f ChangeLog ;		\
 87		exit 1 ;			\
 88	}
 89MAINTAINERCLEANFILES += ChangeLog
 90EXTRA_DIST           += ChangeLog
 91
 92dist-hook-bootstrap:
 93	chmod a-x $(distdir)/bootstrap
 94
 95dist-hook-files: NEWS TODO ChangeLog AUTHORS dist-hook-bootstrap
 96
 97dist-hook: dist-hook-version dist-hook-files
 98
 99dist-gpg: dist
100	gpg --yes -b --use-agent					   \
101		-o $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig	   \
102		$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz          &&   \
103	gpg --verify $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig || { \
104		rm -f $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig ;   \
105		exit 1 ;						   \
106	}
107MAINTAINERCLEANFILES += $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig
108
109dist-upload: dist-gpg
110	chmod 644 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz     &&	\
111	chmod 644 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig &&	\
112	scp $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz		\
113	    $${USER}@dl.sv.nongnu.org:/releases/grmrextractors     &&	\
114	scp $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig		\
115	    $${USER}@dl.sv.nongnu.org:/releases/grmrextractors     || {	\
116		exit 1 ;						\
117	}
118
119announcement:
120	$(ANNOUNCE_GEN)				\
121	  --release-type=alpha			\
122	  --package=$(PACKAGE_TARNAME)		\
123	  --prev=$(PACKAGE_VERSION).test	\
124	  --curr=$(PACKAGE_VERSION)		\
125	  --gpg-key-id=TEST			\
126	  --url-dir=TEST