# HG changeset patch # User Oleksandr Gavenko # Date 1262984396 -7200 # Node ID 6dfc4ac2dc80161a30b22c0f7b9b3be5f20266ef # Parent d0fcacd6421ded5e82f5aa8f423525863b36ed53 Back targets that allow make symlink to dictionaries install dir from user HOME dir. diff -r d0fcacd6421d -r 6dfc4ac2dc80 Makefile --- a/Makefile Fri Jan 08 22:42:26 2010 +0200 +++ b/Makefile Fri Jan 08 22:59:56 2010 +0200 @@ -5,6 +5,8 @@ # uninstall remove dictionaries, they been unavailable in stardict, may require root permission # install-local install dictionaries in user HOME dir, so they been available in stardict for that user # uninstall-local remove dictionaries from user HOME directory +# install-local-symlink create symlink from installed dir to user HOME dir, so dictionaries been available in stardict +# uninstall-local-symlink remove symlink from user HOME directory # On Debian Etch 'stardict-tools' package not placed tools in any system bin dir. @@ -60,6 +62,15 @@ uninstall: rm -r -f $(dicdir) +.PHONY: install-local-symlink +install-local-symlink: # Assume use run "make install" before. + mkdir -p $(HOME)/.stardict/dic + ln -s $(dicdir) $(HOME)/.stardict/dic/$(DICSETNAME) + +.PHONY: uninstall-local-symlink +uninstall-local-symlink: # Assume use run "make uninstall" before. + rm -f $(HOME)/.stardict/dic/$(DICSETNAME) + .PHONY: install-local install-local: mkdir -p $(dicdir-local) diff -r d0fcacd6421d -r 6dfc4ac2dc80 README --- a/README Fri Jan 08 22:42:26 2010 +0200 +++ b/README Fri Jan 08 22:59:56 2010 +0200 @@ -13,13 +13,13 @@ If you install in nonstandard place and wont use dictionary for current user run: - $ make install-user prefix=PREFIX + $ make prefix=PREFIX install install-local-symlink -To uninstall run accordingly: +To uninstall run one command from list accordingly to installation procedure: $ make uninstall $ make uninstall prefix=PREFIX - $ make uninstall-user prefix=PREFIX + $ make prefix=PREFIX uninstall uninstall-local-symlink * What file needed to create dictionary?