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