2 |
# This Makefile fragment is shared between fileutils, sh-utils, textutils, |
# This Makefile fragment is shared between fileutils, sh-utils, textutils, |
3 |
# CPPI, Bison, and Autoconf. |
# CPPI, Bison, and Autoconf. |
4 |
|
|
5 |
## Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
## Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
6 |
## |
## |
7 |
## This program is free software; you can redistribute it and/or modify |
## 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 |
## it under the terms of the GNU General Public License as published by |
209 |
echo "$(distdir).tar.gz is ready for distribution"; \ |
echo "$(distdir).tar.gz is ready for distribution"; \ |
210 |
echo "========================" |
echo "========================" |
211 |
|
|
212 |
|
WGET = wget |
213 |
|
WGETFLAGS = -C off |
214 |
|
|
215 |
tgz-md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/ -//') |
tgz-md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/ -//') |
216 |
tgz-sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/ -//') |
tgz-sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/ -//') |
217 |
bz2-md5 = $(shell md5sum < $(my_distdir).tar.bz2|sed 's/ -//') |
bz2-md5 = $(shell md5sum < $(my_distdir).tar.bz2|sed 's/ -//') |
227 |
md5_tmp=/tmp/rel-check-md5-$$$$; \ |
md5_tmp=/tmp/rel-check-md5-$$$$; \ |
228 |
set -e; \ |
set -e; \ |
229 |
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; \ |
230 |
wget -q --output-document=$$tarz $(url); \ |
$(WGET) $(WGETFLAGS) -q --output-document=$$tarz $(url); \ |
231 |
echo "$(md5) -" > $$md5_tmp; \ |
echo "$(md5) -" > $$md5_tmp; \ |
232 |
md5sum -c $$md5_tmp < $$tarz |
md5sum -c $$md5_tmp < $$tarz |
233 |
|
|
281 |
## Updating files. ## |
## Updating files. ## |
282 |
## ---------------- ## |
## ---------------- ## |
283 |
|
|
|
WGET = wget |
|
284 |
ftp-gnu = ftp://ftp.gnu.org/gnu |
ftp-gnu = ftp://ftp.gnu.org/gnu |
285 |
|
|
286 |
# Use mv, if you don't have/want move-if-change. |
# Use mv, if you don't have/want move-if-change. |
306 |
tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\ |
tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\ |
307 |
rm -rf $$tmppo && \ |
rm -rf $$tmppo && \ |
308 |
mkdir $$tmppo && \ |
mkdir $$tmppo && \ |
309 |
(cd $$tmppo && $(WGET) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\ |
(cd $$tmppo && $(WGET) $(WGETFLAGS) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\ |
310 |
cp $$tmppo/*.po po |
cp $$tmppo/*.po po |
311 |
cd po && $(MAKE) update-po |
cd po && $(MAKE) update-po |
312 |
$(MAKE) po-check |
$(MAKE) po-check |
344 |
|
|
345 |
.PHONY: $(get-targets) |
.PHONY: $(get-targets) |
346 |
$(get-targets): |
$(get-targets): |
347 |
$(WGET) $(url) -O $(target).t \ |
$(WGET) $(WGETFLAGS) $(url) -O $(target).t \ |
348 |
&& $(move_if_change) $(target).t $(target) |
&& $(move_if_change) $(target).t $(target) |
349 |
|
|
350 |
cvs_files ?= $(srcdir)/config/depcomp $(srcdir)/config/missing $(srcdir)/config/mkinstalldirs \ |
cvs_files ?= $(srcdir)/config/depcomp $(srcdir)/config/missing $(srcdir)/config/mkinstalldirs \ |