source: share/Makefile @ 519eaf5

Last change on this file since 519eaf5 was 519eaf5, checked in by Tomasz Obrebski <obrebski@…>, 10 years ago

Bug fixes: bubbles,props

  • 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 gram.dgc $(LANG_DIR)
31        install -m 0644 weights.kor $(LANG_DIR)
32endif
33
34.PHONY: uninstall
35uninstall:
36ifdef LANG_DIR
37        rm $(LANG_DIR)/weights.kor
38        rm $(LANG_DIR)/gram.*
39        rm $(LANG_DIR)/pl_PL.UTF-8/lem.bin
40        rm $(LANG_DIR)/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym
41        rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.cats
42        rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.bin
43        rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.fst
44        rm $(LANG_DIR)/pl_PL.ISO-8859-2/gue.bin
45        rm $(LANG_DIR)/pl_PL.ISO-8859-2/cor.bin
46        rmdir $(LANG_DIR)/pl_PL.ISO-8859-2
47        rmdir $(LANG_DIR)/pl_PL.UTF-8
48endif
49
50
51.PHONY: clean
52clean:
53        rm -f gram.dgp
54
Note: See TracBrowser for help on using the repository browser.