summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rwxr-xr-xMakefile.am14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 708cc117..1e7f8cf2 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,9 +3,9 @@
bin_PROGRAMS = re2c
win_BINARIES = $(WINBUILDDIR)/re2c.exe
re2c_SOURCES = code.cc dfa.cc main.cc parser.cc actions.cc scanner.re substr.cc range.cc \
- translate.cc scanner.cc mbo_getopt.cc print.cc \
+ translate.cc scanner.cc mbo_getopt.cc print.cc input_api.cc \
enc.cc utf8.cc utf8_range.cc utf8_regexp.cc utf16.cc utf16_range.cc utf16_regexp.cc range_suffix.cc \
- basics.h code.h code_names.h dfa.h enc.h free_list.h globals.h ins.h \
+ basics.h code.h code_names.h dfa.h enc.h indent.h input_api.h free_list.h globals.h ins.h \
mbo_getopt.h parser.h print.h range.h range_suffix.h re.h \
scanner.h smart_ptr.h substr.h stream_lc.h token.h \
utf16.h utf16_range.h utf16_regexp.h utf8.h utf8_range.h utf8_regexp.h
@@ -28,10 +28,10 @@ man_MANS = re2c.1
DOCS = $(man_MANS) htdocs/manual.html
EXTRA_SRC = README parser.y scanner.re y.tab.h CHANGELOG NO_WARRANTY \
- doc examples test bootstrap/*.cc bootstrap/*.h lessons \
+ doc examples test bootstrap/*.cc bootstrap/*.h bootstrap/re2c.1 lessons \
$(DOCS)
EXTRA_DIST = $(EXTRA_SRC) makerpm.in re2c.spec.in re2c.spec README.in config_w32.h.in
-EXTRA_ZIP = $(EXTRA_SRC) config_w32.h *.sln *.vcproj re2c.rules
+EXTRA_ZIP = $(EXTRA_SRC) config_w32.h re2c.rules
dist-hook: re2c.spec
rm -rf `find $(distdir)/doc -name .git`
@@ -101,8 +101,10 @@ $(DOCS): re2c.ad
a2x -f manpage re2c.ad
mkdir -p htdocs
asciidoc -o htdocs/manual.html re2c.ad
+ cp re2c.1 $(top_srcdir)/bootstrap/re2c.1
else
-docs:
+docs: $(DOCS)
+$(DOCS): $(top_srcdir)/bootstrap/re2c.1
@echo "Reconfigure to rebuild docs: ./configure --enable-docs"
- @exit 1
+ cp $(top_srcdir)/bootstrap/re2c.1 $(top_srcdir)/re2c.1
endif