> >Also, I have a small question, I have, > > EXTRA_DIST=config $(READLINE_DIR) > >in one of my Makefile.am's. However, it is picking up the > >$(READLINE_DIR) from my build directory. I want it to pick up the > >READLINE_DIR from my source directory. Is there any way to do this? > > Use $(srcdir) and $(top_srcdir) to reference the sources related to > the current directory, or the top directory, respectively. > > So you can use $(top_srcdir)/$(READLINE_DIR) Hmm, this is what I did, but it did not work for me. My top level Makefile.am looks like this, SUBDIRS=$(READLINE_DIR) various tgdb cgdb DIST_SUBDIRS=various tgdb cgdb EXTRA_DIST=config $(READLINE_DIR) I do not want the $(READLINE_DIR) to have the 'make install' rule applied to it, which is why I have it in the EXTRA_DIST var. As is, I am getting the top_builddir. I know this because when I do ../cgdb/configure and then make and then 'make dist' I end up with a readline directory that has all the .o's and the .a's that were compiled in the readline directory. If I change it to EXTRA_DIST=config $(top_srcdir)/$(READLINE_DIR) I get the diff below, and I still end up with the .o's and .a's in the readline directory in the dist. Got any advice? Thanks again and again and again, Bob Rossi Index: Makefile.in =================================================================== RCS file: /cvsroot/cgdb/cgdb/Makefile.in,v retrieving revision 1.35 diff -u -r1.35 Makefile.in --- Makefile.in 28 Jul 2005 22:42:22 -0000 1.35 +++ Makefile.in 29 Jul 2005 01:09:11 -0000 @@ -132,7 +132,7 @@ # the rest of the directories have a make dist rule run on them SUBDIRS = $(READLINE_DIR) various tgdb cgdb DIST_SUBDIRS = various tgdb cgdb -EXTRA_DIST = config $(READLINE_DIR) +EXTRA_DIST = config $(top_srcdir)/$(READLINE_DIR) subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs @@ -330,7 +330,7 @@ distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) - $(mkinstalldirs) $(distdir)/config + $(mkinstalldirs) $(distdir)/$(top_srcdir) $(distdir)/config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf