[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: More Makefile.maint
From: |
Akim Demaille |
Subject: |
FYI: More Makefile.maint |
Date: |
27 Aug 2001 12:30:25 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
Jim, don't you think it'd be cool if we could 1. fill in ChangeLog,
2. have the same kind of mechanism for error.[ch], error.m4 etc.
I think the m4 files should help. Say error.m4 says where to find the
master, and what other files are to be fetched. A mere --trace would
then give the list of what is to be done.
Index: ChangeLog
from Akim Demaille <address@hidden>
* Makefile.maint: Formatting changes.
(do-po-update, po-update, cvs-update, update): New targets.
(AMTAR): Remove.
Index: Makefile.am
===================================================================
RCS file: /cvs/autoconf/Makefile.am,v
retrieving revision 1.71
diff -u -u -r1.71 Makefile.am
--- Makefile.am 2001/08/27 07:18:58 1.71
+++ Makefile.am 2001/08/27 10:20:34
@@ -67,6 +67,7 @@
## ---------------------------- ##
prev_version_file = $(srcdir)/config/prev-version.txt
+move_if_change = $(srcdir)/config/move-if-change
release_archive_dir = releases
# Uploading betas.
Index: Makefile.in
===================================================================
RCS file: /cvs/autoconf/Makefile.in,v
retrieving revision 1.156
diff -u -u -r1.156 Makefile.in
--- Makefile.in 2001/08/27 07:18:58 1.156
+++ Makefile.in 2001/08/27 10:20:34
@@ -82,6 +82,7 @@
MAKEINFO = @MAKEINFO@ --no-headers --no-validate --no-split
prev_version_file = $(srcdir)/config/prev-version.txt
+move_if_change = $(srcdir)/config/move-if-change
release_archive_dir = releases
# Uploading betas.
Index: Makefile.maint
===================================================================
RCS file: /cvs/autoconf/Makefile.maint,v
retrieving revision 1.13
diff -u -u -r1.13 Makefile.maint
--- Makefile.maint 2001/08/15 11:43:28 1.13
+++ Makefile.maint 2001/08/27 10:20:34
@@ -22,9 +22,6 @@
# Do not save the original name or timestamp in the .tar.gz file.
GZIP_ENV = '--no-name --best'
-# Automake 1.4 does not define AMTAR.
-AMTAR ?= $(TAR)
-
CVS = cvs
prev_version_file ?= .prev-version
@@ -46,6 +43,91 @@
+## ---------------- ##
+## Updating files. ##
+## ---------------- ##
+
+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
+
+# ------------------- #
+# Updating PO files. #
+# ------------------- #
+
+po_repo = http://www.iro.umontreal.ca/contrib/po/maint/$(PACKAGE)
+.PHONY: do-po-update po-update
+do-po-update:
+ cd $(srcdir)/po && wget -r -l1 -nd --no-parent -A '*.po' $(po_repo)
+ rm $(srcdir)/po/index.html
+ cd po && $(MAKE) update-po
+ $(MAKE) po-check
+
+po-update:
+ if test -d "po"; then \
+ $(MAKE) do-po-update; \
+ fi
+
+# -------------------------- #
+# Updating GNU build tools. #
+# -------------------------- #
+
+# 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
+wget-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: $(wget-targets)
+$(wget-targets):
+ $(WGET) $(url) -O $(target).t \
+ && $(move_if_change) $(target).t $(target)
+
+.PHONY: wget-update
+wget-update: $(wget-targets)
+
+
+# Updating tools via CVS.
+cvs_files ?= depcomp missing
+cvs-targets = $(patsubst %, get-%, $(cvs_files))
+
+automake_repo = :pserver:address@hidden:/cvs/automake
+.PHONY: $(cvs-targets)
+$(cvs-targets):
+ $(CVS) -d $(automake_repo) co -p automake/lib/$(notdir $(target)) \
+ >$(target).t \
+ && $(move_if_change) $(target).t $(target);
+
+.PHONY: cvs-update
+cvs-update: $(cvs-targets)
+
+
+# --------------------- #
+# Updating everything. #
+# --------------------- #
+
+.PHONY: update
+update: wget-update cvs-update po-update
+
+
+
## --------------- ##
## Sanity checks. ##
## --------------- ##
@@ -119,6 +201,12 @@
$(MAKE) my-distcheck
+
+## -------------- ##
+## Making dists. ##
+## -------------- ##
+
+
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
# FIXME: use dist-hook/my-dist like distcheck-hook/my-distcheck.
@@ -229,48 +317,6 @@
| perl -ne 'm!^\+\+ (\./)?! or print,next;' \
-e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \
)
-
-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:address@hidden:/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
define emit-rsync-commands
echo =====================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: More Makefile.maint,
Akim Demaille <=