]> git.lyx.org Git - lyx.git/commitdiff
handle distclean better
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sat, 6 Apr 2002 14:12:02 +0000 (14:12 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sat, 6 Apr 2002 14:12:02 +0000 (14:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3923 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/ChangeLog
src/frontends/Makefile.am

index 1f401762b379b0c1da7e9b652f05a5723ac4fc8e..3fc16c5828ce071789829c3d3613c22a68342a8e 100644 (file)
@@ -1,6 +1,7 @@
 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>
 
index a87321f3ba7d2d5fe49f420efb40f6fbde80478b..4f7bc41e1a2c353dbc6e43b45cc19cd880deee09 100644 (file)
@@ -1,10 +1,5 @@
 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
@@ -13,12 +8,13 @@ LIBS += @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
 
 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 \
@@ -36,9 +32,14 @@ libfrontends_la_SOURCES=\
        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