1
0
forked from GitHub/gf-core

Set GF_LIB_PATH to the dist dir when building grammar-dist.

This commit is contained in:
bringert
2006-03-21 13:20:03 +00:00
parent c2b3a28411
commit 1e7d498b6c
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
.PHONY: all test pretest langs present mathematical multimodal compiled treebank stat gfdoc clean
.PHONY: show-path all test pretest langs present mathematical multimodal compiled treebank stat gfdoc clean
all: present mathematical multimodal langs compiled
all: show-path present mathematical multimodal langs compiled
show-path:
@echo GF_LIB_PATH=$(GF_LIB_PATH)
test:
echo "gr -cat=Text -number=11 -prob | tb" | gf -nocf -probs=lang.gfprob langs.gfcm

View File

@@ -222,7 +222,7 @@ grammar-dist:
-rm -rf $(GRAMMAR_DIST_DIR)
mkdir $(GRAMMAR_DIST_DIR)
cp -r ../_darcs/current/{lib,examples} $(GRAMMAR_DIST_DIR)
$(MAKE) -C $(GRAMMAR_DIST_DIR)/lib/resource-1.0 present mathematical multimodal langs
$(MAKE) GF_LIB_PATH=.. -C $(GRAMMAR_DIST_DIR)/lib/resource-1.0 show-path present mathematical multimodal langs
$(TAR) -zcf $(GRAMMAR_DIST_DIR).tgz $(GRAMMAR_DIST_DIR)
rm -rf $(GRAMMAR_DIST_DIR)