Back targets that allow make symlink to dictionaries install dir from user HOME dir.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 08 Jan 2010 22:59:56 +0200
changeset 26 6dfc4ac2dc80
parent 25 d0fcacd6421d
child 27 b5d5bd21717e
Back targets that allow make symlink to dictionaries install dir from user HOME dir.
Makefile
README
--- 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)
--- 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?