Blob Blame History Raw
NULL =
AUTOMAKE_OPTIONS = dist-bzip2
SUBDIRS = libeasyfc

if ENABLE_GOBJECT
SUBDIRS += libeasyfc-gobject
endif

SUBDIRS += docs tests

ACLOCAL_AMFLAGS = -I m4macros
#ACLOCAL_AMFLAGS =			\
#	-I m4macros			\
#	$(NULL)

CONFIGURE_DEPENDENCIES =		\
	requires			\
	$(NULL)

EXTRA_DIST =				\
	$(pkgconfig_DATA)		\
	$(noinst_DATA)			\
	requires			\
	$(NULL)

MAINTAINERCLEANFILES =			\
	$(srcdir)/ChangeLog		\
	$(srcdir)/INSTALL		\
	$(srcdir)/aclocal.m4		\
	$(srcdir)/compile		\
	$(srcdir)/config.guess		\
	$(srcdir)/config.h.in		\
	$(srcdir)/config.sub		\
	$(srcdir)/depcomp		\
	$(srcdir)/gtk-doc.make		\
	$(srcdir)/install-sh		\
	$(srcdir)/ltmain.sh		\
	$(srcdir)/m4macros/*.m4		\
	$(srcdir)/missing		\
	$(srcdir)/mkinstalldirs		\
	$(srcdir)/test-driver		\
	`find "$(srcdir)" -type f -name Makefile.in -print`	\
	$(NULL)
DISTCLEANFILES =			\
	$(pkgconfig_DATA)		\
	$(noinst_DATA)			\
	$(NULL)

DISTCHECK_CONFIGURE_FLAGS =		\
	--enable-introspection		\
	--enable-gtk-doc		\
	$(NULL)

#
#
#
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =			\
	libeasyfc.pc			\
	libeasyfc-gobject.pc		\
	$(NULL)
$(pkgconfig_DATA): $(top_builddir)/config.status
#
$(srcdir)/ChangeLog:
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then		\
	(GIT_DIR=$(top_srcdir)/.git $(GIT) log --stat) |	\
	fmt --split-only > $@.tmp				\
	&& mv -f $@.tmp $@					\
	|| ($(RM) $@.tmp;					\
	    echo Failed to generate ChangeLog.  your ChangeLog may be outdated >&2;	\
	    (test -f $@ || echo git-log is required to generate this file >> $@));	\
	else							\
	  test -f $@ ||						\
	  (echo A git checkout and git-log is required to generate ChangeLog >&2 &&	\
	   echo A git checkout and git-log is required to generate this file >> $@);	\
	fi

.PHONY: $(srcdir)/ChangeLog

-include $(top_srcdir)/git.mk