summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-07-29 22:12:41 +0200
committerSimon Josefsson <simon@josefsson.org>2009-07-29 22:12:41 +0200
commitd97c0f9afff7fded223eddd76d50667f48069b8a (patch)
treeeee7ea6a1548557a343274f695ef5e673dff1742 /maint.mk
parent47b86581e68f9b22f163c40f2389934256c5abcb (diff)
downloadlibtasn1-d97c0f9afff7fded223eddd76d50667f48069b8a.tar.gz
libtasn1-d97c0f9afff7fded223eddd76d50667f48069b8a.tar.bz2
libtasn1-d97c0f9afff7fded223eddd76d50667f48069b8a.zip
Update gnulib files.
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/maint.mk b/maint.mk
index ef828d1..228b414 100644
--- a/maint.mk
+++ b/maint.mk
@@ -44,7 +44,7 @@ ifeq ($(origin prev_version_file), undefined)
prev_version_file = $(srcdir)/.prev-version
endif
-PREV_VERSION := $(shell cat $(prev_version_file))
+PREV_VERSION := $(shell cat $(prev_version_file) 2>/dev/null)
VERSION_REGEXP = $(subst .,\.,$(VERSION))
PREV_VERSION_REGEXP = $(subst .,\.,$(PREV_VERSION))
@@ -70,9 +70,11 @@ export LC_ALL = C
## Sanity checks. ##
## --------------- ##
+_cfg_mk := $(shell test -f $(srcdir)/cfg.mk && echo '$(srcdir)/cfg.mk')
+
# Collect the names of rules starting with `sc_'.
syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' \
- $(srcdir)/$(ME) $(srcdir)/cfg.mk)
+ $(srcdir)/$(ME) $(_cfg_mk))
.PHONY: $(syntax-check-rules)
local-checks-available = \
@@ -540,6 +542,7 @@ sc_po_check:
for file in $$($(VC_LIST_EXCEPT)) lib/*.[ch]; do \
test -r $$file || continue; \
case $$file in \
+ *.m4|*.mk) continue ;; \
*.?|*.??) ;; \
*) continue;; \
esac; \
@@ -626,7 +629,7 @@ maintainer-distcheck:
# Also, make sure the NEWS file is up-to-date.
ALL_RECURSIVE_TARGETS += vc-dist
vc-dist: $(local-check) cvs-check maintainer-distcheck
- XZ_OPT=-9ev $(MAKE) dist
+ XZ_OPT=9ev $(MAKE) dist
# Use this to make sure we don't run these programs when building
# from a virgin tgz file, below.