22 |
# Do not save the original name or timestamp in the .tar.gz file. |
# Do not save the original name or timestamp in the .tar.gz file. |
23 |
GZIP_ENV = '--no-name --best' |
GZIP_ENV = '--no-name --best' |
24 |
|
|
|
# Automake 1.4 does not define AMTAR. |
|
|
AMTAR ?= $(TAR) |
|
|
|
|
25 |
CVS = cvs |
CVS = cvs |
26 |
|
|
27 |
prev_version_file ?= .prev-version |
prev_version_file ?= .prev-version |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
## ---------------- ## |
47 |
|
## Updating files. ## |
48 |
|
## ---------------- ## |
49 |
|
|
50 |
|
WGET = wget |
51 |
|
ftp-gnu = ftp://ftp.gnu.org/gnu |
52 |
|
|
53 |
|
# Use mv, if you don't have/want move-if-change. |
54 |
|
move_if_change ?= move-if-change |
55 |
|
|
56 |
|
# ------------------- # |
57 |
|
# Updating PO files. # |
58 |
|
# ------------------- # |
59 |
|
|
60 |
|
po_repo = http://www.iro.umontreal.ca/contrib/po/maint/$(PACKAGE) |
61 |
|
.PHONY: do-po-update po-update |
62 |
|
do-po-update: |
63 |
|
tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\ |
64 |
|
rm -rf $$tmppo && \ |
65 |
|
mkdir $$tmppo && \ |
66 |
|
(cd $$tmppo && $(WGET) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\ |
67 |
|
cp $$tmppo/*.po po |
68 |
|
cd po && $(MAKE) update-po |
69 |
|
$(MAKE) po-check |
70 |
|
|
71 |
|
po-update: |
72 |
|
if test -d "po"; then \ |
73 |
|
$(MAKE) do-po-update; \ |
74 |
|
fi |
75 |
|
|
76 |
|
# -------------------------- # |
77 |
|
# Updating GNU build tools. # |
78 |
|
# -------------------------- # |
79 |
|
|
80 |
|
# The following pseudo table associates a local directory and a URL |
81 |
|
# with each of the files that belongs to some other package and is |
82 |
|
# regularly updated from the specified URL. |
83 |
|
wget_files ?= $(srcdir)/config.guess $(srcdir)/config.sub \ |
84 |
|
$(srcdir)/src/ansi2knr.c \ |
85 |
|
$(srcdir)/doc/texinfo.tex |
86 |
|
wget-targets = $(patsubst %, get-%, $(wget_files)) |
87 |
|
|
88 |
|
config.guess-url_prefix = $(ftp-gnu)/config/ |
89 |
|
config.sub-url_prefix = $(ftp-gnu)/config/ |
90 |
|
|
91 |
|
ansi2knr.c-url_prefix = ftp://ftp.cs.wisc.edu/ghost/ |
92 |
|
|
93 |
|
texinfo.tex-url_prefix = $(ftp-gnu)/texinfo/ |
94 |
|
|
95 |
|
standards.texi-url_prefix = $(ftp-gnu)/GNUinfo/ |
96 |
|
make-stds.texi-url_prefix = $(ftp-gnu)/GNUinfo/ |
97 |
|
|
98 |
|
target = $(patsubst get-%, %, $@) |
99 |
|
url = $($(notdir $(target))-url_prefix)$(notdir $(target)) |
100 |
|
|
101 |
|
.PHONY: $(wget-targets) |
102 |
|
$(wget-targets): |
103 |
|
$(WGET) $(url) -O $(target).t \ |
104 |
|
&& $(move_if_change) $(target).t $(target) |
105 |
|
|
106 |
|
.PHONY: wget-update |
107 |
|
wget-update: $(wget-targets) |
108 |
|
|
109 |
|
|
110 |
|
# Updating tools via CVS. |
111 |
|
cvs_files ?= depcomp missing |
112 |
|
cvs-targets = $(patsubst %, get-%, $(cvs_files)) |
113 |
|
|
114 |
|
automake_repo = :pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake |
115 |
|
.PHONY: $(cvs-targets) |
116 |
|
$(cvs-targets): |
117 |
|
$(CVS) -d $(automake_repo) co -p automake/lib/$(notdir $(target)) \ |
118 |
|
>$(target).t \ |
119 |
|
&& $(move_if_change) $(target).t $(target); |
120 |
|
|
121 |
|
.PHONY: cvs-update |
122 |
|
cvs-update: $(cvs-targets) |
123 |
|
|
124 |
|
|
125 |
|
# --------------------- # |
126 |
|
# Updating everything. # |
127 |
|
# --------------------- # |
128 |
|
|
129 |
|
.PHONY: update |
130 |
|
update: wget-update cvs-update po-update |
131 |
|
|
132 |
|
|
133 |
|
|
134 |
## --------------- ## |
## --------------- ## |
135 |
## Sanity checks. ## |
## Sanity checks. ## |
136 |
## --------------- ## |
## --------------- ## |
137 |
|
|
138 |
# Checks that don't require cvs. |
# Checks that don't require cvs. Run `changelog-check' last as |
139 |
local-check: changelog-check po-check writable-files copyright-check |
# previous test may reveal problems requiring new ChangeLog entries. |
140 |
|
local-check: po-check copyright-check writable-files changelog-check |
141 |
|
|
142 |
changelog-check: |
changelog-check: |
143 |
if head ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \ |
if head ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \ |
203 |
$(MAKE) my-distcheck |
$(MAKE) my-distcheck |
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
## -------------- ## |
208 |
|
## Making dists. ## |
209 |
|
## -------------- ## |
210 |
|
|
211 |
|
|
212 |
# Tag before making distribution. Also, don't make a distribution if |
# Tag before making distribution. Also, don't make a distribution if |
213 |
# checks fail. Also, make sure the NEWS file is up-to-date. |
# checks fail. Also, make sure the NEWS file is up-to-date. |
214 |
# FIXME: use dist-hook/my-dist like distcheck-hook/my-distcheck. |
# FIXME: use dist-hook/my-dist like distcheck-hook/my-distcheck. |
215 |
cvs-dist: cvs-check maintainer-distcheck |
cvs-dist: local-check cvs-check maintainer-distcheck |
216 |
$(CVS) update po |
$(CVS) update po |
217 |
$(CVS) tag -c $(this-cvs-tag) |
$(CVS) tag -c $(this-cvs-tag) |
218 |
$(MAKE) dist |
$(MAKE) dist |
222 |
null_AM_MAKEFLAGS = \ |
null_AM_MAKEFLAGS = \ |
223 |
ACLOCAL=false \ |
ACLOCAL=false \ |
224 |
AUTOCONF=false \ |
AUTOCONF=false \ |
225 |
|
AUTOM4TE=false \ |
226 |
AUTOMAKE=false \ |
AUTOMAKE=false \ |
227 |
AUTOHEADER=false \ |
AUTOHEADER=false \ |
228 |
MAKEINFO=false |
MAKEINFO=false |
270 |
md5_tmp=/tmp/rel-check-md5-$$$$; \ |
md5_tmp=/tmp/rel-check-md5-$$$$; \ |
271 |
set -e; \ |
set -e; \ |
272 |
trap 'status=$$?; rm -f $$tarz $$md5_tmp; exit $$status' 0 1 2 3 15; \ |
trap 'status=$$?; rm -f $$tarz $$md5_tmp; exit $$status' 0 1 2 3 15; \ |
273 |
wget -q --output-document=$$tarz $(url); \ |
$(WGET) -q --output-document=$$tarz $(url); \ |
274 |
echo "$(md5) -" > $$md5_tmp; \ |
echo "$(md5) -" > $$md5_tmp; \ |
275 |
md5sum -c $$md5_tmp < $$tarz |
md5sum -c $$md5_tmp < $$tarz |
276 |
|
|
321 |
-e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \ |
-e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \ |
322 |
) |
) |
323 |
|
|
|
WGET = wget |
|
|
ftp-gnu = ftp://ftp.gnu.org/gnu |
|
|
|
|
|
# Use mv, if you don't have/want move-if-change. |
|
|
move_if_change ?= move-if-change |
|
|
|
|
|
# The following pseudo table associates a local directory and a URL |
|
|
# with each of the files that belongs to some other package and is |
|
|
# regularly updated from the specified URL. |
|
|
wget_files ?= $(srcdir)/config.guess $(srcdir)/config.sub \ |
|
|
$(srcdir)/src/ansi2knr.c \ |
|
|
$(srcdir)/doc/texinfo.tex |
|
|
get-targets = $(patsubst %, get-%, $(wget_files)) |
|
|
|
|
|
config.guess-url_prefix = $(ftp-gnu)/config/ |
|
|
config.sub-url_prefix = $(ftp-gnu)/config/ |
|
|
|
|
|
ansi2knr.c-url_prefix = ftp://ftp.cs.wisc.edu/ghost/ |
|
|
|
|
|
texinfo.tex-url_prefix = $(ftp-gnu)/texinfo/ |
|
|
|
|
|
standards.texi-url_prefix = $(ftp-gnu)/GNUinfo/ |
|
|
make-stds.texi-url_prefix = $(ftp-gnu)/GNUinfo/ |
|
|
|
|
|
target = $(patsubst get-%, %, $@) |
|
|
url = $($(notdir $(target))-url_prefix)$(notdir $(target)) |
|
|
|
|
|
.PHONY: $(get-targets) |
|
|
$(get-targets): |
|
|
$(WGET) $(url) -O $(target).t \ |
|
|
&& $(move_if_change) $(target).t $(target) |
|
|
|
|
|
automake_repo=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake |
|
|
.PHONY: wget-update |
|
|
wget-update: $(get-targets) |
|
|
for f in depcomp missing; do \ |
|
|
test -f $$f || continue; \ |
|
|
echo checking out $$f...; \ |
|
|
$(CVS) -d $(automake_repo) co -p automake/lib/$$f > $$f.t \ |
|
|
&& $(move_if_change) $$f.t $$f; \ |
|
|
done |
|
|
|
|
324 |
define emit-rsync-commands |
define emit-rsync-commands |
325 |
echo ===================================== |
echo ===================================== |
326 |
echo ===================================== |
echo ===================================== |
335 |
$(xd-delta): $(release_archive_dir)/$(prev-tgz) $(distdir).tar.gz |
$(xd-delta): $(release_archive_dir)/$(prev-tgz) $(distdir).tar.gz |
336 |
xdelta delta -9 $^ $@ || : |
xdelta delta -9 $^ $@ || : |
337 |
|
|
338 |
alpha: local-check |
alpha: |
339 |
$(MAKE) cvs-dist |
$(MAKE) cvs-dist |
340 |
$(MAKE) $(xd-delta) |
$(MAKE) $(xd-delta) |
341 |
$(MAKE) -s announcement > /tmp/announce-$(my_distdir) |
$(MAKE) -s announcement > /tmp/announce-$(my_distdir) |