summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: ef6afb7c22a2b954fffceee5073c5862ac697c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Process this file with automake to produce Makefile.in

ACLOCAL_AMFLAGS = -I m4
SUBDIRS = m4 intl lib libidu src lisp doc testsuite po
EXTRA_DIST = README-alpha config.rpath mkinstalldirs autogen.sh

# When the version number is composed of only digits and "."s,
# ensure that it matches the "Version:" comment in idutils.el.
f = $(srcdir)/lisp/idutils.el
distcheck-hook:
	case "$(VERSION)" in *[^.0-9]*) chk=n;; *) chk=y;; esac;	\
	if test $$chk = y; then						\
	  v=`echo "$(VERSION)" | sed 's/\./\\\\./'`;			\
	  grep '^;; Version: '"$$v"'$$' $(f) > /dev/null && :		\
	    || { echo 1>&2 $(f): update version to $(VERSION);exit 1; }	\
	else								\
	  :;								\
	fi