# $Id$

SUBDIRS =								\
	icons								\
	libxfcegui4							\
	libxfce4kbd-private						\
	docs								\
	po								\
	glade

AUTOMAKE_OPTIONS =							\
	1.8								\
	dist-bzip2

distclean-local:
	rm -rf libxfcegui4.spec *.cache *~

rpm: dist
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
	@rm -f $(PACKAGE)-$(VERSION).tar.gz

.PHONY: ChangeLog

ChangeLog: Makefile
	(GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
	&& mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
	|| (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)

dist-hook: ChangeLog

EXTRA_DIST = 								\
	AUTHORS								\
	COPYING								\
	INSTALL								\
	NEWS								\
	README								\
	TODO								\
	gtk-doc.make							\
	libxfcegui4.spec						\
	intltool-extract.in						\
	intltool-merge.in						\
	intltool-update.in

DISTCLEANFILES = \
	intltool-extract \
	intltool-merge \
	intltool-update

DISTCHECK_CONFIGURE_FLAGS = 						\
	--disable-debug							\
	--enable-gtk-doc						\
	--with-libglade-module-path=/tmp/$(PACKAGE)-distcheck/libglade	\
	--with-gladeui-module-path=/tmp/$(PACKAGE)-distcheck/gladeui-lib \
	--with-gladeui-data-root=/tmp/$(PACKAGE)-distcheck/gladeui-data

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
