patch for 0.7.3 Makefile.in

Adrian Otto aotto at aotto.com
Fri Sep 13 06:10:34 CEST 2002


David,

Thank you very much for this! I posted your patch on the sourceforge site:
https://sourceforge.net/tracker/index.php?func=detail&aid=608738&group_id=62
265&atid=499999

I'll check it tonight.

Thanks,

Adrian

> -----Original Message-----
> From: David Relson [mailto:relson at osagesoftware.com]
> Sent: Thursday, September 12, 2002 8:26 PM
> To: bogofilter-dev at aotto.com
> Subject: patch for 0.7.3 Makefile.in
>
>
> Greetings,
>
> I noticed that the 0.7.3 release included lexer_l.c.  Since lexer_l.c is
> generated from lexer_l.l, I deleted it to see what would happen.  The
> result was a zero length file, which is wrong.  Looking at
> Makefile.in, it
> appears that the sed and rm lines in target .l.c: shouldn't be there.  To
> be honest, I don't know exactly why those two lines were included in the
> first place.  Anyhow, a quick experiment showed that without those two
> lines, lexer_l.c is correctly generated from lexer_l.l.  So I've removed
> the two lines from my Makefile.in.
>
> I also noticed that "make clean" doesn't delete lexer_l.c and
> that the 0.7
> Makefile had a lexertest target
>
> Anyhow below's a patch to correct these 3 issues.
>
> David
>
>
> --- bogofilter-0.7.3/Makefile.in	Thu Sep 12 16:32:50 2002
> +++ bogofilter-0.7.3.1/Makefile.in	Thu Sep 12 23:23:59 2002
> @@ -184,7 +184,7 @@
>   	$(LINK) $(bogofilter_LDFLAGS) $(bogofilter_OBJECTS)
> $(bogofilter_LDADD)
> $(LIBS)
>
>   mostlyclean-compile:
> -	-rm -f *.$(OBJEXT) core *.core
> +	-rm -f *.$(OBJEXT) core *.core lexer_l.c
>
>   distclean-compile:
>   	-rm -f *.tab.c
> @@ -212,8 +212,10 @@
>
>   .l.c:
>   	$(LEXCOMPILE) `test -f $< || echo '$(srcdir)/'`$<
> -	sed '/^#/ s|$(LEX_OUTPUT_ROOT)\.c|$@|' $(LEX_OUTPUT_ROOT).c >$@
> -	rm -f $(LEX_OUTPUT_ROOT).c
> +
> +lexertest: lexer_l.c
> +	$(CC) -DMAIN -o lexertest lexer_l.c
> +
>   uninstall-info-am:
>
>   man1dir = $(mandir)/man1
>
>



More information about the bogofilter-dev mailing list