diff options
| author | bringert <unknown> | 2005-05-12 13:10:16 +0000 |
|---|---|---|
| committer | bringert <unknown> | 2005-05-12 13:10:16 +0000 |
| commit | 73a60aabf50488b34f7813036f20246aa702da80 (patch) | |
| tree | 4b424f1d6f29928820517b7f25e73d07db29cfa9 /src/Makefile | |
| parent | d31e5a4d44976701bcdec54c7c87404fd8a174bf (diff) | |
Added grammar-dist target.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index e46638981..fe55f32d0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -17,6 +17,8 @@ NOT_IN_DIST= \ BIN_DIST_DIR=$(DIST_DIR)-$(host) +GRAMMAR_DIST_DIR=GF-grammars-$(PACKAGE_VERSION) + SNAPSHOT_DIR=GF-$(shell date +%Y%m%d) # use the temporary binary file name 'gf-bin' name to not clash with directory 'GF' @@ -190,6 +192,15 @@ binary-dist: gtar -zcf GF-$(PACKAGE_VERSION)-$(host).tgz $(BIN_DIST_DIR) rm -rf $(BIN_DIST_DIR) +grammar-dist: + -rm -rf $(GRAMMAR_DIST_DIR) + mkdir $(GRAMMAR_DIST_DIR) + cvs export -d $(GRAMMAR_DIST_DIR) -rHEAD GF/{lib,examples} + mv $(GRAMMAR_DIST_DIR)/GF/* $(GRAMMAR_DIST_DIR) + rmdir $(GRAMMAR_DIST_DIR)/GF + gtar -zcf $(GRAMMAR_DIST_DIR).tgz $(GRAMMAR_DIST_DIR) + rm -rf $(GRAMMAR_DIST_DIR) + # # Installation # |
