aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: fdd1222067d868c667bf97ec8843449830691d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SUBDIRS = po src doc emacs tests

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = TODO THANKS README.Skribe ChangeLog.Skribe guix.scm

gen-ChangeLog:
	if ! test -d "$(top_srcdir)/.git"; then				\
	  echo "\`.git' not found; \`ChangeLog' not generated" >&2;	\
	elif ! git --version > /dev/null 2>&1; then			\
	  echo "git not found; \`ChangeLog' not generated" >&2;		\
	else								\
	  "$(top_srcdir)/build-aux/gitlog-to-changelog"			\
	     > "$(distdir)/cl-t";					\
	  rm -f "$(distdir)/ChangeLog";					\
	  mv "$(distdir)/cl-t" "$(distdir)/ChangeLog";			\
	fi

EXTRA_DIST += $(top_srcdir)/.version
$(top_srcdir)/.version:
	echo $(VERSION) > "$@-t" && mv "$@-t" "$@"
gen-tarball-version:
	echo "$(VERSION)" > "$(distdir)/.tarball-version"

dist-hook: gen-ChangeLog gen-tarball-version

.PHONY: gen-ChangeLog gen-tarball-version