Makefile.am 1.58 KB
Newer Older
1 2
ACLOCAL_AMFLAGS = -I m4 -I libgd ${ACLOCAL_FLAGS}

3
SUBDIRS = . data libgd src po tests help
Debarshi Ray's avatar
Debarshi Ray committed
4 5 6 7 8 9 10 11 12 13 14

photosdocdir = $(docdir)
photosdoc_DATA = \
	ARTISTS \
	AUTHORS \
	COPYING \
	ChangeLog \
	NEWS \
	README \
	$(NULL)

15
# There is no way to generate the AUTHORS in tarball builds
Debarshi Ray's avatar
Debarshi Ray committed
16 17
EXTRA_DIST = \
	$(photosdoc_DATA) \
18
	AUTHORS \
Debarshi Ray's avatar
Debarshi Ray committed
19 20
	$(NULL)

21
# We don't want to clean the AUTHORS in tarball builds
22 23 24
CLEANFILES = \
	$(NULL)

Debarshi Ray's avatar
Debarshi Ray committed
25 26 27
DISTCLEANFILES = \
	$(NULL)

28
MAINTAINERCLEANFILES = \
29
	$(GITIGNORE_MAINTAINERCLEANFILES_M4_GETTEXT) \
30
	$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
31
	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
32 33 34 35 36 37 38 39 40 41 42 43
	$(srcdir)/AUTHORS \
	$(srcdir)/INSTALL \
	$(srcdir)/config.h.in \
	$(srcdir)/omf.make \
	$(srcdir)/xmldocs.make \
	$(srcdir)/gtk-doc.make \
	$(NULL)

GITIGNOREFILES = \
	config \
	$(NULL)

44
AUTHORS:
Debarshi Ray's avatar
Debarshi Ray committed
45 46
	@if test -d "$(srcdir)/.git"; \
	then \
47
		echo Creating $@ && \
Debarshi Ray's avatar
Debarshi Ray committed
48 49
		( cd "$(top_srcdir)" && \
		  echo '# Generated by Makefile. Do not edit.'; echo; \
50 51 52 53 54
		  git log --no-merges --pretty=format:"%an" src \
		  | sort | uniq ) > $@.tmp \
		&& mv -f $@.tmp $@ \
		|| ( rm -f $@.tmp ; \
		     echo Failed to generate $@ >&2 ); \
Debarshi Ray's avatar
Debarshi Ray committed
55
	fi
56 57

dist-hook:
Debarshi Ray's avatar
Debarshi Ray committed
58 59 60 61 62 63 64 65 66 67 68 69
	@if test -d "$(srcdir)/.git"; \
	then \
		echo Creating ChangeLog && \
		( cd "$(top_srcdir)" && \
		  echo '# Generated by Makefile. Do not edit.'; echo; \
		  $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
		&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
		|| ( rm -f ChangeLog.tmp ; \
		     echo Failed to generate ChangeLog >&2 ); \
	else \
		echo A git clone is required to generate a ChangeLog >&2; \
	fi
70 71

.PHONY: AUTHORS
72 73

-include $(top_srcdir)/git.mk