Last change
on this file since f924e4b was
f600a02,
checked in by Tomasz Obrebski <obrebski@…>, 11 years ago
|
Bugs in build and installation process fixed, lem.bin and gram.dgp built while compilation
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[5f4d9c3] | 1 | include ../config.mak |
---|
| 2 | |
---|
[f600a02] | 3 | |
---|
| 4 | TARGETS = gram.dgp |
---|
| 5 | |
---|
| 6 | .PHONY: all |
---|
| 7 | all: $(TARGETS) |
---|
| 8 | |
---|
| 9 | # ------------------------------------------------------------------ |
---|
| 10 | # main section |
---|
| 11 | # ------------------------------------------------------------------ |
---|
| 12 | |
---|
| 13 | gram.dgp: gram.dgc |
---|
| 14 | dgc --grammar=gram.dgc --categories=$(LANGUAGE)/lem.cats --outputfile=gram.dgp |
---|
| 15 | |
---|
| 16 | |
---|
[5f4d9c3] | 17 | .PHONY: install |
---|
| 18 | install: |
---|
| 19 | ifdef LANG_DIR |
---|
| 20 | install -d $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
| 21 | install -d $(LANG_DIR)/pl_PL.UTF-8 |
---|
| 22 | install -m 0644 pl_PL.ISO-8859-2/cor.bin $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
| 23 | install -m 0644 pl_PL.ISO-8859-2/gue.bin $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
| 24 | install -m 0644 pl_PL.ISO-8859-2/lem.bin $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
[3b02b04] | 25 | install -m 0644 pl_PL.ISO-8859-2/lem.fst $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
| 26 | install -m 0644 pl_PL.ISO-8859-2/lem.cats $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
[5f4d9c3] | 27 | install -m 0644 pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
| 28 | install -m 0644 pl_PL.UTF-8/lem.bin $(LANG_DIR)/pl_PL.UTF-8 |
---|
[f600a02] | 29 | install -m 0644 gram.dgp $(LANG_DIR) |
---|
[5f4d9c3] | 30 | install -m 0644 weights.kor $(LANG_DIR) |
---|
| 31 | endif |
---|
| 32 | |
---|
| 33 | .PHONY: uninstall |
---|
| 34 | uninstall: |
---|
| 35 | ifdef LANG_DIR |
---|
| 36 | rm $(LANG_DIR)/weights.kor |
---|
[d2f119e] | 37 | rm $(LANG_DIR)/gram.* |
---|
[5f4d9c3] | 38 | rm $(LANG_DIR)/pl_PL.UTF-8/lem.bin |
---|
| 39 | rm $(LANG_DIR)/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym |
---|
[3b02b04] | 40 | rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.cats |
---|
[5f4d9c3] | 41 | rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.bin |
---|
[3b02b04] | 42 | rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.fst |
---|
[5f4d9c3] | 43 | rm $(LANG_DIR)/pl_PL.ISO-8859-2/gue.bin |
---|
| 44 | rm $(LANG_DIR)/pl_PL.ISO-8859-2/cor.bin |
---|
| 45 | rmdir $(LANG_DIR)/pl_PL.ISO-8859-2 |
---|
| 46 | rmdir $(LANG_DIR)/pl_PL.UTF-8 |
---|
| 47 | endif |
---|
[f600a02] | 48 | |
---|
| 49 | |
---|
| 50 | .PHONY: clean |
---|
| 51 | clean: |
---|
| 52 | rm -f gram.dgp |
---|
| 53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.