Makefile
changeset 26 6dfc4ac2dc80
parent 23 946ae4b96419
child 28 6bab39ff1663
--- 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)