[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Files used in EXTRA_DIST not working with distcheck
From: |
Joshua Moore-Oliva |
Subject: |
Re: Files used in EXTRA_DIST not working with distcheck |
Date: |
Wed, 17 Aug 2005 11:40:47 -0400 |
User-agent: |
KMail/1.8.1 |
> It would be easier to say what's happening if you showed a bit more of
> your build setup, for example the rules that use cspm*.
This is the entire relevant Makefile.am
EXTRA_DIST = cspm.lex cspm.y
if DO_CSPT
bin_PROGRAMS = cspt
cspt_CXXFLAGS = -Wno-deprecated -DYYDEBUG=1 -include iostream.h
cspt_SOURCES = ParseNode.cc ParseNode.h ParseNodes.cc ParseNodes.h \
Symbols.cc Symbols.h TranContext.cc TranContext.h
nodist_cspt_SOURCES = lex.yy.cc cspm.tab.cc
BUILT_SOURCES = lex.yy.cc cspm.tab.cc
cspt_LDADD = $(LEXLIB)
lex.yy.cc: cspm.lex cspm.tab.cc ParseNode.h
$(LEX) -+ -o$@ cspm.lex
grep -v "class istream" lex.yy.cc > lex.yy.tmp # get rid of "class
istream"
/bin/rm lex.yy.cc
/bin/mv lex.yy.tmp lex.yy.cc
cspm.tab.cc: cspm.y ParseNodes.h Symbols.h
bison -v -d cspm.y
mv cspm.tab.c cspm.tab.cc
CLEANFILES = lex.yy.cc cspm.output cspm.tab.cc cspm.tab.h
endif
> Without that information, I can only guess: Your package is broken with
> respect to VPATH builds, i.e., srcdir != builddir. "make distcheck"
> tests this.
>
> Try this: generate your tarball. In an empty directory, do:
> gzip -dc $PACKAGE.tar.gz | tar xvf -
> mkdir build
> cd build
> ../$PACKAGE/configure [OPTIONS]
> make
> make check
>
> If this fails, you may need to add a few $(srcdir) and/or $(builddir)
> prefixes to your rules (Automake mostly does this for you in its
> generated stuff).
This does fail. Could you please give more detail on the solution? I am not
sure what rules you are talking about, nor exactly what you mean by a prefix. I
am new to automake so
excuse my scant automake vocabulary.
> Don't hesitate to show the rules; even if it seems to work on your
> system, they can be tricky to get right so they work for any "make"
> implementation.
They are shown above. Thanks for you help!
Joshua Moore-Oliva