]> granicus.if.org Git - re2c/commitdiff
Simplified scanner and parser rules.
authornuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 26 May 2004 23:59:15 +0000 (23:59 +0000)
committernuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 26 May 2004 23:59:15 +0000 (23:59 +0000)
Makefile.am

index 0ed013619eb4c2ae8f49795a8ab4cdb455fa493d..ba22761e449a7b7217bd5ec6d3627617324a4327 100755 (executable)
@@ -30,17 +30,17 @@ EXTRA_DIST   = $(man_MANS) README parser.y scanner.re makerpm.in re2c.spec.in \
 rpm-files:     $(bin_PROGRAMS) $(EXTRA_DIST)
 
 parser.cc:     $(top_srcdir)/parser.y
-       $(YACC) $(YFLAGS) $(top_srcdir)/parser.y
+       $(YACC) $(YFLAGS) $<
        mv -f y.tab.c $(top_srcdir)/parser.cc
        if cmp -s y.tab.h $(top_srcdir)/y.tab.h; then :; else mv -f y.tab.h $(top_srcdir)/y.tab.h; fi
 
 scanner.cc: $(top_srcdir)/scanner.re
        @if test -x ./re2c$(EXEEXT); then \
                echo "re2c $(RE2CFLAGS) -o $@ $<"; \
-               ./re2c $(RE2CFLAGS) -o $(top_srcdir)/$@ $(top_srcdir)/$< && cp $(top_srcdir)/$@ $(top_srcdir)/bootstrap/; \
+               ./re2c $(RE2CFLAGS) -o $@ $< && cp $@ $(top_srcdir)/bootstrap/; \
        else \
                echo "cp -f $(top_srcdir)/bootstrap/$@ $@"; \
-               cp -f $(top_srcdir)/bootstrap/$@ $(top_srcdir)/$@; \
+               cp -f $(top_srcdir)/bootstrap/$@ $@; \
        fi
 
 .version: