summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2016-11-21 16:16:08 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2016-11-21 16:16:10 +0900
commit8b8ef408f9f27d44bc6a034e3e98fe7bbc14c13d (patch)
tree9a9dfdcd65d48834896939f16642ddb2b5a8353f /Makefile.am
parent84f111e3e97ae41bd9b90f9963c5f102bb677829 (diff)
downloadre2c-8b8ef408f9f27d44bc6a034e3e98fe7bbc14c13d.tar.gz
re2c-8b8ef408f9f27d44bc6a034e3e98fe7bbc14c13d.tar.bz2
re2c-8b8ef408f9f27d44bc6a034e3e98fe7bbc14c13d.zip
Imported Upstream version 0.13.7.1
Change-Id: I8fc0a63403852a938b3f32f7333be01c9ebca343 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'Makefile.am')
-rwxr-xr-xMakefile.am35
1 files changed, 23 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am
index 75ad0442..5ec3f04f 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,16 +2,18 @@
bin_PROGRAMS = re2c
win_BINARIES = $(WINBUILDDIR)/re2c.exe
-re2c_SOURCES = code.cc dfa.cc main.cc parser.cc actions.cc scanner.re substr.cc\
- translate.cc scanner.cc mbo_getopt.cc \
- basics.h dfa.h globals.h ins.h parser.h re.h scanner.h \
- substr.h token.h mbo_getopt.h code.h stream_lc.h code_names.h
+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 \
+ 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 \
+ 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
BUILT_SOURCES = parser.cc scanner.cc
-man_MANS = re2c.1
-
#CXXFLAGS = -O2 -Wall -Wno-unused -Wno-parentheses -Wno-deprecated
#CXXFLAGS = -ggdb -fno-inline -O2 -Wall -Wextra -pedantic -Wconversion -Wpointer-arith -Wwrite-strings -Wredundant-decls -Werror -Wunused-function -DPEDANTIC
+CXXFLAGS = -W -Wall -Wextra -pedantic -Wredundant-decls -DPEDANTIC -O2 -g
YFLAGS = -d
RE2C = re2c$(EXEEXT)
@@ -21,18 +23,18 @@ CLEANFILES = parser.cc y.tab.c y.tab.h scanner.cc re2c.1 .version htdocs/manua
DISTCLEANFILES = makerpm re2c.spec README scanner.cc re2c$(EXEEXT)
-EXTRA_SRC = $(man_MANS) README parser.y scanner.re y.tab.h CHANGELOG \
+EXTRA_SRC = README parser.y scanner.re y.tab.h CHANGELOG NO_WARRANTY \
doc examples test bootstrap/*.cc bootstrap/*.h lessons
-EXTRA_DIST = $(EXTRA_SRC) makerpm.in re2c.spec.in re2c.spec README.in config_w32.h.in htdocs/manual.html.in
+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
-dist-hook: vtest re2c.spec
+dist-hook: re2c.spec
rm -rf `find $(distdir)/doc -name .git`
rm -rf `find $(distdir)/examples -name .git`
rm -rf `find $(distdir)/test -name .git -o -name .gitignore`
rm -rf `find $(distdir)/lessons -name .git -o -name .gitignore`
-rpm-files: $(bin_PROGRAMS) $(EXTRA_DIST)
+rpm-files: $(bin_PROGRAMS) $(EXTRA_DIST)
rpm: dist
cp -f re2c-$(PACKAGE_VERSION).tar.gz `rpm --eval "%{_sourcedir}"`
@@ -81,10 +83,19 @@ scanner.cc: $(top_srcdir)/scanner.re
TESTS = run_tests.sh
-test: all $(TESTS)
+tests: all $(TESTS)
test -x $(TESTS) || chmod +x $(TESTS)
./$(TESTS)
-vtest: all $(TESTS)
+vtests: all $(TESTS)
test -x $(TESTS) || chmod +x $(TESTS)
./$(TESTS) --valgrind
+
+DOCS_IN = re2c.ad
+DOCS = re2c.1 htdocs/manual.html
+DOCS_GEN = ./re2c_docs.sh
+
+docs: $(DOCS)
+
+$(DOCS): $(DOCS_GEN) $(DOCS_IN)
+ $(DOCS_GEN)