ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = \
	common \
	dialogs \
	xfce4-settings-manager \
	xfce4-settings-editor \
	xfsettingsd \
	po

if HAVE_COLORD
SUBDIRS += \
	icons

distuninstallcheck_listfiles = 						\
	find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache
endif

EXTRA_DIST = \
	intltool-extract.in \
	intltool-merge.in \
	intltool-update.in

.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

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