Makefile.am 1.1 KB
Newer Older
1

2
SUBDIRS = libvirt-sandbox bin examples docs po
3 4 5 6 7 8

ACLOCAL_AMFLAGS = -I m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libvirt-sandbox-1.0.pc

9 10 11 12 13
EXTRA_DIST = \
	$(PACKAGE).spec \
	$(pkgconfig_DATA:%.pc=%.pc.in) \
	AUTHORS.in \
	$(NULL)
14

15
DISTCLEAN_FILES = $(PACKAGE).spec $(pkgconfig_DATA)
16

17
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection=yes --enable-gtk-doc=yes
18

19
dist-hook: gen-ChangeLog gen-AUTHORS
20 21 22

# Generate the ChangeLog file (with all entries since the switch to git)
# and insert it into the directory we're about to use to create a tarball.
23
.PHONY: gen-ChangeLog gen-AUTHORS
24 25 26 27 28 29 30
gen-ChangeLog:
	if test -d .git || test -d ../.git; then					\
	  $(top_srcdir)/build-aux/gitlog-to-changelog		\
	     > $(distdir)/cl-t;	\
	  rm -f $(distdir)/ChangeLog;				\
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;		\
	fi
31 32 33 34 35 36 37 38

gen-AUTHORS:
	$(AM_V_GEN)if test -d $(srcdir)/.git; then		\
	  out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \
	  perl -p -e "s/#authorslist#// and print '$$out'"	\
	    < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp &&	\
	  mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ;	\
	fi