source: share/Makefile @ f600a02

Last change on this file since f600a02 was f600a02, checked in by Tomasz Obrebski <obrebski@…>, 10 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
Line 
1include ../config.mak
2
3
4TARGETS = gram.dgp
5
6.PHONY: all
7all: $(TARGETS)
8
9# ------------------------------------------------------------------
10# main section
11# ------------------------------------------------------------------
12
13gram.dgp: gram.dgc
14        dgc --grammar=gram.dgc --categories=$(LANGUAGE)/lem.cats --outputfile=gram.dgp
15
16
17.PHONY: install
18install:
19ifdef 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
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
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
29        install -m 0644 gram.dgp $(LANG_DIR)
30        install -m 0644 weights.kor $(LANG_DIR)
31endif
32
33.PHONY: uninstall
34uninstall:
35ifdef LANG_DIR
36        rm $(LANG_DIR)/weights.kor
37        rm $(LANG_DIR)/gram.*
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
40        rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.cats
41        rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.bin
42        rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.fst
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
47endif
48
49
50.PHONY: clean
51clean:
52        rm -f gram.dgp
53
Note: See TracBrowser for help on using the repository browser.