summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrrt <rrt>2010-07-19 20:07:17 +0000
committerrrt <rrt>2010-07-19 20:07:17 +0000
commitcf705e859f23a3477616c6f3080ecda313b67766 (patch)
treed09d8b6d36874b2114f538e5175fd514b12e7092 /Makefile
parent6dad4d41c35340b4c0e0d0ecd011252129f907a9 (diff)
downloadlrexlib-cf705e859f23a3477616c6f3080ecda313b67766.tar.gz
Add a new regex engine: GNU regex.
This checkin contains simply a first rough cut of the new code, which passes the existing tests (but rewritten for Emacs syntax, in emacs_sets.lua). Documentation and complete code to expose the unique features of GNU regex is yet to come.
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9c017c3..e8380b5 100755
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,9 @@
# See src/*.mak for user-definable settings
-POSIX = src/posix
+GNU = src/gnu
PCRE = src/pcre
+POSIX = src/posix
ONIG = src/oniguruma
all: build test
@@ -14,6 +15,9 @@ test: test_pcre test_posix test_onig
clean: clean_pcre clean_posix clean_onig
+build_gnu:
+ make -C $(GNU) -f rex_gnu.mak
+
build_pcre:
make -C $(PCRE) -f rex_pcre.mak
@@ -23,6 +27,9 @@ build_posix:
build_onig:
make -C $(ONIG) -f rex_onig.mak
+test_gnu:
+ cd test && lua ./runtest.lua -d../$(PCRE) gnu
+
test_pcre:
cd test && lua ./runtest.lua -d../$(PCRE) pcre
@@ -32,6 +39,9 @@ test_posix:
test_onig:
cd test && lua ./runtest.lua -d../$(ONIG) onig
+clean_gnu:
+ make -C $(PCRE) -f rex_gnu.mak clean
+
clean_pcre:
make -C $(PCRE) -f rex_pcre.mak clean
@@ -41,5 +51,6 @@ clean_posix:
clean_onig:
make -C $(ONIG) -f rex_onig.mak clean
-.PHONY: all build test clean build_pcre test_pcre clean_pcre build_posix \
+.PHONY: all build test clean build_gnu test_gnu clean_gnu \
+ build_pcre test_pcre clean_pcre build_posix \
test_posix clean_posix build_onig test_onig clean_onig