aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 401d86276218cd826f786e3d983e24bf06d4d674 (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
28
29
SUBDIRS = po src doc emacs tests

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST =						\
  TODO THANKS README.Skribe ChangeLog.Skribe guix.scm	\
  build-aux/test-driver.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