summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-11-30 20:58:52 +0000
committerPaul Smith <psmith@gnu.org>2004-11-30 20:58:52 +0000
commit6c9e53d64804a856580876f2019ce4ea1e42b4e0 (patch)
treea26254e95ce4f317d470904dd0d28ec0bc439de1 /maintMakefile
parent49ca261bd5a40d933719ab6b2b1fd183a81bf35b (diff)
downloadgunmake-6c9e53d64804a856580876f2019ce4ea1e42b4e0.tar.gz
Fix problems with README and build.sh
Apply an old patch from Paul Eggert.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile22
1 files changed, 11 insertions, 11 deletions
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".
#