summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index c50258a..dab648f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,22 @@
# Makefile for lrexlib
-# See src/*/Makefile and src/defaults.mak for user-definable settings
-
-include src/defaults.mak
+# See src/*/Makefile for user-definable settings
REGNAMES = gnu pcre posix oniguruma tre
PROJECT = lrexlib
-VERSION = $(V).$(MINORV)
+VERSION = 2.6.0
PROJECT_VERSIONED = $(PROJECT)-$(VERSION)
DISTFILE = $(PROJECT_VERSIONED).zip
-all:
- @for i in $(REGNAMES); do \
- make -C src/$$i; \
- done
- @make -C doc
-
-check: all
+check:
@for i in $(REGNAMES); do \
- make -C src/$$i check; \
+ cd src/$$i && LUA_PATH="../../test/?.lua;$(LUA_PATH)" $(LUA) ../../test/runtest.lua -d. $$i && cd ../..; \
done
-clean:
- @for i in $(REGNAMES); do \
- make -C src/$$i clean; \
- done
- @make -C doc clean
+doc:
+ @make -C doc
-dist: all
+dist: doc
git2cl > ChangeLog
cd .. && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT) -x "lrexlib/.git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties" && mv $(DISTFILE) $(PROJECT) && cd $(PROJECT) && unzip $(DISTFILE) && mv $(PROJECT) $(PROJECT_VERSIONED) && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT_VERSIONED) && rm -rf $(PROJECT_VERSIONED)