From 5fdaefe2cfd2e38a83fee58c6a2b852d5e124d69 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 21 Sep 2011 15:49:06 +0200 Subject: Update gnulib files. --- maint.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'maint.mk') diff --git a/maint.mk b/maint.mk index c9ffb95a5b..0137df10fa 100644 --- a/maint.mk +++ b/maint.mk @@ -762,7 +762,8 @@ define def_sym_regex gen_h=$(gl_generated_headers_); \ (cd $(gnulib_dir)/lib; \ for f in *.in.h $(gl_other_headers_); do \ - perl -lne '$(gl_extract_significant_defines_)' $$f; \ + test -f $$f \ + && perl -lne '$(gl_extract_significant_defines_)' $$f; \ done; \ ) | sort -u \ | sed 's/^/^ *# *(define|undef) */;s/$$/\\>/' @@ -1398,7 +1399,8 @@ _gl_TS_dir ?= src ALL_RECURSIVE_TARGETS += sc_tight_scope sc_tight_scope: tight-scope.mk - @if ! grep '^ *export _gl_TS_headers *=' $(srcdir)/cfg.mk \ + @fail=0; \ + if ! grep '^ *export _gl_TS_headers *=' $(srcdir)/cfg.mk \ > /dev/null \ && ! grep -w noinst_HEADERS $(srcdir)/$(_gl_TS_dir)/Makefile.am \ > /dev/null 2>&1; then \ @@ -1410,8 +1412,9 @@ sc_tight_scope: tight-scope.mk -f $(abs_top_builddir)/$< \ _gl_tight_scope \ || fail=1; \ - fi - @rm -f $< + fi; \ + rm -f $<; \ + exit $$fail tight-scope.mk: $(ME) @rm -f $@ $@-t -- cgit v1.2.1