handle distclean better

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3923 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-04-06 14:12:02 +00:00
parent a81d9e53d9
commit d5bef92340
2 changed files with 12 additions and 10 deletions

View File

@ -1,6 +1,7 @@
2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com> 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
* Makefile.am: make distcheck work * Makefile.am: make distcheck work
(distclean-local): handle distclean of non-built frontends better.
2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com> 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>

View File

@ -1,10 +1,5 @@
include $(top_srcdir)/config/common.am 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@ SUBDIRS = controllers @FRONTEND@
noinst_LTLIBRARIES = libfrontends.la noinst_LTLIBRARIES = libfrontends.la
@ -13,12 +8,13 @@ LIBS += @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/.. $(SIGC_CFLAGS) $(BOOST_INCLUDES) INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/.. $(SIGC_CFLAGS) $(BOOST_INCLUDES)
libfrontends_la_LIBADD= @FRONTEND_GUILIB@ \ EXTRA_DIST = xforms qt2 gnome
controllers/*.lo
libfrontends_la_LIBADD = @FRONTEND_GUILIB@ controllers/*.lo
libfrontends_la_DEPENDENCIES = $(libfrontends_la_LIBADD) libfrontends_la_DEPENDENCIES = $(libfrontends_la_LIBADD)
libfrontends_la_SOURCES=\ libfrontends_la_SOURCES = \
Alert.C \ Alert.C \
Alert.h \ Alert.h \
Alert_pimpl.h \ Alert_pimpl.h \
@ -36,9 +32,14 @@ libfrontends_la_SOURCES=\
Toolbar.C \ Toolbar.C \
Toolbar.h Toolbar.h
EXTRA_DIST = xforms qt2 gnome
dist-hook: dist-hook:
@cd $(distdir) ; \ @cd $(distdir) ; \
rm -rf `find qt2 -name \*CVS\*`; \ rm -rf `find qt2 -name \*CVS\*`; \
rm -rf `find gnome -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