$(SRC)
# autogenerated sources
-AUTOGEN_SCANNER = scanner_lex.cc
-AUTOGEN_PARSEOPT = parse_opts.cc
-AUTOGEN_PARSER = parser.cc
-AUTOGEN_PARSER_HDR = y.tab.h
+AUTOGEN_SCANNER = src/parse/scanner_lex.cc
+AUTOGEN_PARSEOPT = src/conf/parse_opts.cc
+AUTOGEN_PARSER = src/parse/parser.cc
+AUTOGEN_PARSER_HDR = src/parse/y.tab.h
AUTOGEN = \
$(AUTOGEN_PARSER) \
$(AUTOGEN_PARSER_HDR) \
nodist_re2c_SOURCES = $(AUTOGEN)
# bootstrap sources
-BOOTSTRAP_SCANNER = bootstrap/scanner_lex.cc
-BOOTSTRAP_PARSEOPT = bootstrap/parse_opts.cc
-BOOTSTRAP_PARSER = bootstrap/parser.cc
-BOOTSTRAP_PARSER_HDR = bootstrap/y.tab.h
-BOOTSTRAP_DOC_MAN = bootstrap/re2c.1
-BOOTSTRAP_DOC_HTML = bootstrap/manual.html
+BOOTSTRAP_SCANNER = bootstrap/src/parse/scanner_lex.cc
+BOOTSTRAP_PARSEOPT = bootstrap/src/conf/parse_opts.cc
+BOOTSTRAP_PARSER = bootstrap/src/parse/parser.cc
+BOOTSTRAP_PARSER_HDR = bootstrap/src/parse/y.tab.h
+BOOTSTRAP_DOC_MAN = bootstrap/doc/re2c.1
+BOOTSTRAP_DOC_HTML = bootstrap/doc/manual.html
BOOTSTRAP = \
$(BOOTSTRAP_DOC_HTML) \
$(BOOTSTRAP_DOC_MAN) \
# rule has side effects:
# - bootstrap file in source directory, must manually prepend $(top_srcdir)
-$(AUTOGEN_SCANNER): $(CUSTOM_SCANNER)
+.re.cc:
@if test -x $(RE2C); \
then \
$(RE2C) $(RE2CFLAGS) -o $@ $< && \
- cp $@ $(top_srcdir)/$(BOOTSTRAP_SCANNER); \
+ cp $@ $(top_srcdir)/bootstrap/$@; \
else \
- cp $(top_srcdir)/$(BOOTSTRAP_SCANNER) $@; \
+ cp $(top_srcdir)/bootstrap/$@ $@; \
fi
-# rule has side effects:
-# - bootstrap file in source directory, must manually prepend $(top_srcdir)
-$(AUTOGEN_PARSEOPT): $(CUSTOM_PARSEOPT)
- @if test -x $(RE2C); \
- then \
- $(RE2C) $(RE2CFLAGS) -o $@ $< && \
- cp $@ $(top_srcdir)/$(BOOTSTRAP_PARSEOPT); \
- else \
- cp $(top_srcdir)/$(BOOTSTRAP_PARSEOPT) $@; \
- fi
-
-# rebuild lexer (just in case it was bootstrapped) and rebuild re2c
+# rebuild all re2c sources using newly built re2c
.PHONY: bootstrap
bootstrap: all
rm $(AUTOGEN_SCANNER) $(AUTOGEN_PARSEOPT)
<div class="sect1">\r
<h2 id="_version_information">VERSION INFORMATION</h2>\r
<div class="sectionbody">\r
-<div class="paragraph"><p>This manpage describes <strong>re2c</strong>, version 0.14.1.dev, package date 16 Jun 2015.</p></div>\r
+<div class="paragraph"><p>This manpage describes <strong>re2c</strong>, version 0.14.1.dev, package date 20 Jul 2015.</p></div>\r
</div>\r
</div>\r
</div>\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2015-06-16 15:43:09 BST\r
+Last updated 2015-07-20 11:59:13 BST\r
</div>\r
</div>\r
</body>\r
.\" Title: re2c
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.78.0 <http://docbook.sf.net/>
-.\" Date: 06/16/2015
+.\" Date: 07/20/2015
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
-.TH "RE2C" "1" "06/16/2015" "\ \&" "\ \&"
+.TH "RE2C" "1" "07/20/2015" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.RE
.SH "VERSION INFORMATION"
.sp
-This manpage describes \fBre2c\fR, version 0\&.14\&.1\&.dev, package date 16 Jun 2015\&.
+This manpage describes \fBre2c\fR, version 0\&.14\&.1\&.dev, package date 20 Jul 2015\&.