[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a distro

From: Bob Rossi
Subject: Re: creating a distro
Date: Thu, 28 Jul 2005 21:16:06 -0400
User-agent: Mutt/1.3.28i

> >Also, I have a small question, I have,
> >in one of my'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 looks like this,

   SUBDIRS=$(READLINE_DIR) various tgdb cgdb
   DIST_SUBDIRS=various tgdb cgdb

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

RCS file: /cvsroot/cgdb/cgdb/,v
retrieving revision 1.35
diff -u -r1.35
--- 28 Jul 2005 22:42:22 -0000      1.35
+++ 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 $(top_srcdir)/$(READLINE_DIR)
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
@@ -330,7 +330,7 @@
 distdir: $(DISTFILES)
        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 \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]