tag 354196 patch thanks The build failed because Make didn't know how to generate y.tab.c, because it doesn't know that $(top_builddir)/src/y.tab.c refers to the same thing. Changing the latter to the former, as the attached patch does, fixes the problem.
-- Matt
diff -ru mailfilter-0.6.2-orig/src/Makefile.am mailfilter-0.6.2/src/Makefile.am --- mailfilter-0.6.2-orig/src/Makefile.am 2006-03-10 07:38:38.000000000 -0800 +++ mailfilter-0.6.2/src/Makefile.am 2006-03-10 08:07:12.000000000 -0800 @@ -32,13 +32,13 @@ rcfile.cc: $(srcdir)/rcfile.ll rcparser.h $(LEX) $(AM_LFLAGS) -o$@ $^ -rcparser.h: $(top_builddir)/src/y.tab.c -$(top_builddir)/src/y.tab.c: $(srcdir)/rcfile.yy - $(YACC) $(YFLAGS) -o$@ $^; \ - mv --force y.tab.c rcparser.cc; \ - mv --force y.tab.h rcparser.h; \ - $(CXXCOMPILE) -c rcparser.cc; \ - touch $(top_builddir)/src/y.tab.c +rcparser.h: y.tab.c +y.tab.c: $(srcdir)/rcfile.yy + $(YACC) $(YFLAGS) -o$@ $^; \ + mv --force y.tab.c rcparser.cc; \ + mv --force y.tab.h rcparser.h; \ + $(CXXCOMPILE) -c rcparser.cc; \ + touch y.tab.c # This thing is a workaround to avoid compile errors. # We always re-generate the source from the flex/bison input, so it diff -ru mailfilter-0.6.2-orig/src/Makefile.in mailfilter-0.6.2/src/Makefile.in --- mailfilter-0.6.2-orig/src/Makefile.in 2006-03-10 07:38:38.000000000 -0800 +++ mailfilter-0.6.2/src/Makefile.in 2006-03-10 08:23:03.000000000 -0800 @@ -553,13 +553,13 @@ rcfile.cc: $(srcdir)/rcfile.ll rcparser.h $(LEX) $(AM_LFLAGS) -o$@ $^ -rcparser.h: $(top_builddir)/src/y.tab.c -$(top_builddir)/src/y.tab.c: $(srcdir)/rcfile.yy - $(YACC) $(YFLAGS) -o$@ $^; \ - mv --force y.tab.c rcparser.cc; \ - mv --force y.tab.h rcparser.h; \ - $(CXXCOMPILE) -c rcparser.cc; \ - touch $(top_builddir)/src/y.tab.c +rcparser.h: y.tab.c +y.tab.c: $(srcdir)/rcfile.yy + $(YACC) $(YFLAGS) -o$@ $^; \ + mv --force y.tab.c rcparser.cc; \ + mv --force y.tab.h rcparser.h; \ + $(CXXCOMPILE) -c rcparser.cc; \ + touch y.tab.c # Looks like automake still wants to distribute rcfile.cc, even if it # is in nodist_*_sources.
signature.asc
Description: Digital signature