diff options
author | Reuben Thomas <rrt@sc3d.org> | 2010-11-11 19:51:15 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2010-11-11 19:51:15 +0000 |
commit | 8bf2417ca8646ba35559aa8e6ebe73eefa0d9bd6 (patch) | |
tree | 338dbeae1d3b3c4722f06973f37dc01685668e62 /Makefile | |
parent | 865f933f4150aa78bbaa0c01cbba66d5db6187b2 (diff) | |
download | lrexlib-8bf2417ca8646ba35559aa8e6ebe73eefa0d9bd6.tar.gz |
Suffix distribution zip's top-level directory with the version number.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,7 +5,9 @@ include src/defaults.mak REGNAMES = gnu pcre posix oniguruma tre -DISTFILE = lrexlib-$(V).$(MINORV).zip +PROJECT = lrexlib +PROJECT_VERSIONED = $(PROJECT)-$(V).$(MINORV) +DISTFILE = $(PROJECT_VERSIONED).zip all: @for i in $(REGNAMES); do \ @@ -26,5 +28,4 @@ clean: dist: all git2cl > ChangeLog - rm -f $(DISTFILE) - zip $(DISTFILE) -r . -x ".git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties" + 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) |