summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-08-01 11:02:37 +0100
committerReuben Thomas <rrt@sc3d.org>2010-08-01 11:02:37 +0100
commit92f91a1cf08d4128d209dcf2162f1c898a1d33a5 (patch)
tree33504bae71441aa54c1458006210c73a78a535fe /Makefile
parent86d0f1f1ad2a8839b24e20e2a2cfee94dfb51c50 (diff)
downloadlrexlib-92f91a1cf08d4128d209dcf2162f1c898a1d33a5.tar.gz
Write the rest of the dist target to build a release zip.
Move make variable V into defaults.mak, which can be included from top-level Makefile, and used to name the zip. In release Zip, copy doc/index.txt to README.
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0476399..cc6b14a 100755
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,10 @@
# See src/*/Makefile and src/defaults.mak for user-definable settings
+include src/defaults.mak
+
REGNAMES = gnu pcre posix oniguruma tre
+DISTFILE = lrexlib-$(V).zip
all:
@for i in $(REGNAMES); do \
@@ -21,3 +24,6 @@ clean:
dist:
git2cl > ChangeLog
+ cp -a doc/index.txt README
+ rm -f $(DISTFILE)
+ zip $(DISTFILE) -r . -x ".git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*"