From 6c9e53d64804a856580876f2019ce4ea1e42b4e0 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 30 Nov 2004 20:58:52 +0000 Subject: Fix problems with README and build.sh Apply an old patch from Paul Eggert. --- maintMakefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'maintMakefile') diff --git a/maintMakefile b/maintMakefile index c3208fe..b6cb0c9 100644 --- a/maintMakefile +++ b/maintMakefile @@ -15,11 +15,6 @@ MTEMPLATES = Makefile.DOS SMakefile all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in -# We need this to ensure that README and build.sh.in are created on time to -# avoid errors by automake. -# -#Makefile.in: README build.sh.in - # General rule for turning a .template into a regular file. # $(TEMPLATES) : % : %.template Makefile @@ -67,13 +62,18 @@ build.sh.in: build.template Makefile # Automake used to have a --generate-deps flag, but it's gone now, so we have # to do it ourselves. # +DEP_FILES := $(wildcard $(DEPDIR)/*.Po) .dep_segment: Makefile.am maintMakefile $(DEP_FILES) - cat $(DEP_FILES) \ - | sed -e '/^[^:]*\.[ch] *:/d' \ - -e 's, /usr/[^ ]*,,g' \ - -e 's, $(srcdir)/, ,g' \ - -e '/^ \\$$/d' \ - > $@ + (for f in $(DEPDIR)/*.Po; do \ + echo ""; \ + echo "# $$f"; \ + cat $$f \ + | sed -e '/^[^:]*\.[ch] *:/d' \ + -e 's, /usr/[^ ]*,,g' \ + -e 's, $(srcdir)/, ,g' \ + -e '/^ *\\$$/d' \ + -e '/^ *$$/d'; \ + done) > $@ # Get rid of everything "else". # -- cgit v1.2.3