summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile65
1 files changed, 36 insertions, 29 deletions
diff --git a/maintMakefile b/maintMakefile
index f08c3cc..67f3098 100644
--- a/maintMakefile
+++ b/maintMakefile
@@ -80,20 +80,24 @@ build.sh.in: build.template Makefile
maintFILES = configure aclocal.m4 config.h.in Makefile.in stamp-h.in
CVS-CLEAN-FILES += $(maintFILES) $(TEMPLATES) $(MTEMPLATES) NMakefile \
- missing build.sh.in .dep_segment po-check-?
+ build.sh.in .deps .dep_segment ABOUT-NLS
# This rule tries to clean the tree right down to how it looks when you do a
# virgin CVS checkout.
+# This is potentially dangerous since it removes _ANY FILE_ that is not in
+# CVS. Including files you might mean to add to CVS but haven't yet...
+# I only use this in subdirectories where it's unlikely we have any new
+# files. Stil...
+cvsclean = perl -e '$$k{CVS} = 1; open(E,"< CVS/Entries") || die "CVS/Entries: $$!\n"; while (defined ($$_ = <E>)) { m%^/([^/]*)% or next; $$k{$$1} = 1; } close(E) || die "CVS/Entries: $$!\n"; opendir(D, ".") || die ".: $$!\n"; while (defined ($$_ = readdir(D))) { -f $$_ && ! exists $$k{$$_} && unlink($$_); } closedir(D) || die ".: $$!\n";'
+
.PHONY: cvs-clean
cvs-clean: maintainer-clean
- -rm -f *~
- -rm -f config/*~ config/Makefile.in config/[a-z]*
- -rm -f po/*~ po/Makefile.in.in po/Rules-quot po/[a-z]*
- -rm -f doc/*~ doc/Makefile.in doc/fdl.texi doc/make-stds.texi \
- doc/texinfo.tex
- -rm -f glob/*~ glob/Makefile.in
- -rm -f ABOUT-NLS $(CVS-CLEAN-FILES)
+ -rm -rf *~ $(CVS-CLEAN-FILES)
+ -cd config && $(cvsclean)
+ -cd po && $(cvsclean)
+ -cd doc && $(cvsclean)
+ -cd glob && $(cvsclean)
# ----------------------------------------------------------------------
@@ -142,18 +146,13 @@ po-update:
# 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.
-# $(srcdir)/src/ansi2knr.c
-
-wget_files ?= $(srcdir)/doc/texinfo.tex $(srcdir)/doc/make-stds.texi \
- $(srcdir)/doc/fdl.texi
+wget_files ?= $(srcdir)/doc/make-stds.texi $(srcdir)/doc/fdl.texi
wget-targets = $(patsubst %, get-%, $(wget_files))
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/
fdl.texi-url_prefix = $(ftp-gnu)/GNUinfo/
@@ -167,32 +166,42 @@ $(wget-targets):
&& $(WGET) $(url) -O $(target).t \
&& $(move_if_change)
-config-prefix = http://savannah.gnu.org/cgi-bin/viewcvs/config
-config-url = $(config-prefix)/$(patsubst get-%,%,$@)?rev=HEAD
+savannah-url = http://savannah.gnu.org/cgi-bin/viewcvs
+viewcvs-suffix = \?rev=HEAD\&content-type=text/plain
+
+config-url = $(savannah-url)/config/config/$(patsubst get-config/%,%,$@)$(viewcvs-suffix)
get-config/config.guess get-config/config.sub:
@echo $(WGET) $(config-url) -O $(target) \
&& $(WGET) $(config-url) -O $(target).t \
&& $(move_if_change)
+gnulib-url = $(savannah-url)/gnulib/gnulib/config/$(patsubst get-config/%,%,$@)$(viewcvs-suffix)
+
+get-config/texinfo.tex:
+ @echo $(WGET) $(gnulib-url) -O $(target) \
+ && $(WGET) $(gnulib-url) -O $(target).t \
+ && $(move_if_change)
+
.PHONY: wget-update
wget-update: $(wget-targets)
# Updating tools via CVS.
-cvs_files ?= depcomp missing
-# config/config.guess config/config.sub
-cvs-targets = $(patsubst %, get-%, $(cvs_files))
+# cvs_files ?= depcomp missing
+# cvs-targets = $(patsubst %, get-%, $(cvs_files))
-automake_repo = :pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake
-.PHONY: $(cvs-targets)
-$(cvs-targets):
- $(CVS) -d $(automake_repo) co -p automake/lib/$(notdir $(target)) \
- >$(target).t \
- && $(move_if_change)
+# automake_repo = :pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake
+# .PHONY: $(cvs-targets)
+# $(cvs-targets):
+# $(CVS) -d $(automake_repo) co -p automake/lib/$(notdir $(target)) \
+# >$(target).t \
+# && $(move_if_change)
+
+# $(cvs-targets)
.PHONY: cvs-update
-cvs-update: $(cvs-targets) get-config/config.guess get-config/config.sub
+cvs-update: get-config/texinfo.tex get-config/config.guess get-config/config.sub
# --------------------- #
@@ -200,9 +209,7 @@ cvs-update: $(cvs-targets) get-config/config.guess get-config/config.sub
# --------------------- #
.PHONY: update
-update: wget-update po-update
-
-# cvs-update
+update: wget-update po-update cvs-update
## --------------- ##