summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 47e3e3af21d3ac1c73898218d48342343875799b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUBDIRS = lib src test

dist_noinst_SCRIPTS = abs2rel.sh

# ChangeLog rules
EXTRA_DIST = ChangeLog
MAINTAINERCLEANFILES = ChangeLog
.PHONY: ChangeLog

ChangeLog:
	@if test "$(srcdir)" != .; then \
	  echo "Can only create ChangeLog from the source directory"; \
	  exit 0; \
	fi; \
	if test ! -d $(srcdir)/.git; then \
	  echo "No .git directory available. Can't create ChangeLog"; \
	  exit 0; \
	fi; \
	echo git --git-dir=$(srcdir)/.git log '>' $@; \
	git --git-dir=$(srcdir)/.git log > $@