equal
deleted
inserted
replaced
3 # all build dictionaries |
3 # all build dictionaries |
4 # install install dictionaries, so they been available in stardict, may require root permission |
4 # install install dictionaries, so they been available in stardict, may require root permission |
5 # uninstall remove dictionaries, they been unavailable in stardict, may require root permission |
5 # uninstall remove dictionaries, they been unavailable in stardict, may require root permission |
6 # install-local install dictionaries in user HOME dir, so they been available in stardict for that user |
6 # install-local install dictionaries in user HOME dir, so they been available in stardict for that user |
7 # uninstall-local remove dictionaries from user HOME directory |
7 # uninstall-local remove dictionaries from user HOME directory |
|
8 # install-local-symlink create symlink from installed dir to user HOME dir, so dictionaries been available in stardict |
|
9 # uninstall-local-symlink remove symlink from user HOME directory |
8 |
10 |
9 |
11 |
10 # On Debian Etch 'stardict-tools' package not placed tools in any system bin dir. |
12 # On Debian Etch 'stardict-tools' package not placed tools in any system bin dir. |
11 export PATH := $(PATH):/usr/lib/stardict-tools |
13 export PATH := $(PATH):/usr/lib/stardict-tools |
12 |
14 |
58 |
60 |
59 .PHONY: uninstall |
61 .PHONY: uninstall |
60 uninstall: |
62 uninstall: |
61 rm -r -f $(dicdir) |
63 rm -r -f $(dicdir) |
62 |
64 |
|
65 .PHONY: install-local-symlink |
|
66 install-local-symlink: # Assume use run "make install" before. |
|
67 mkdir -p $(HOME)/.stardict/dic |
|
68 ln -s $(dicdir) $(HOME)/.stardict/dic/$(DICSETNAME) |
|
69 |
|
70 .PHONY: uninstall-local-symlink |
|
71 uninstall-local-symlink: # Assume use run "make uninstall" before. |
|
72 rm -f $(HOME)/.stardict/dic/$(DICSETNAME) |
|
73 |
63 .PHONY: install-local |
74 .PHONY: install-local |
64 install-local: |
75 install-local: |
65 mkdir -p $(dicdir-local) |
76 mkdir -p $(dicdir-local) |
66 for dic in $(FNAME); do \ |
77 for dic in $(FNAME); do \ |
67 install -m 644 $$dic.dict.dz $(dicdir-local); \ |
78 install -m 644 $$dic.dict.dz $(dicdir-local); \ |