2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
* Makefile.am: make distcheck work
+ (distclean-local): handle distclean of non-built frontends better.
2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
include $(top_srcdir)/config/common.am
-DISTCLEANFILES += -r qt2/Makefile qt2/.deps qt2/xforms/Makefile \
- qt2/xforms/.deps qt2/moc/Makefile qt2/moc/.deps qt2/ui/Makefile \
- qt2/ui/.deps qt2/ui/moc/Makefile qt2/ui/moc/.deps \
- gnome/Makefile gnome/.deps
-
SUBDIRS = controllers @FRONTEND@
noinst_LTLIBRARIES = libfrontends.la
INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/.. $(SIGC_CFLAGS) $(BOOST_INCLUDES)
-libfrontends_la_LIBADD= @FRONTEND_GUILIB@ \
- controllers/*.lo
+EXTRA_DIST = xforms qt2 gnome
+
+libfrontends_la_LIBADD = @FRONTEND_GUILIB@ controllers/*.lo
libfrontends_la_DEPENDENCIES = $(libfrontends_la_LIBADD)
-libfrontends_la_SOURCES=\
+libfrontends_la_SOURCES = \
Alert.C \
Alert.h \
Alert_pimpl.h \
Toolbar.C \
Toolbar.h
-EXTRA_DIST = xforms qt2 gnome
-
dist-hook:
@cd $(distdir) ; \
rm -rf `find qt2 -name \*CVS\*`; \
rm -rf `find gnome -name \*CVS\*`
+
+distclean-local:
+ for dir in $(EXTRA_DIST) ; do \
+ if test -f $$dir/Makefile ; then \
+ make -C $$dir distclean ; \
+ fi ; \
+ done