chiark / gitweb /
Makefile: Build `~/.less' properly from our `dot/lesskey' file.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 9 Dec 2018 12:45:34 +0000 (12:45 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 9 Dec 2018 12:48:39 +0000 (12:48 +0000)
The documentation is clear about having to do this annoying thing, so
I'm not sure why I didn't do it.

Delete the old `~/.lesskey' file if we find it, because it doesn't do
any good there.

Makefile

index 79be3ea6f02d28e083c42de5294843273857a0e7..07a27fe011572e30be5ff3d6989565fd8f71b47c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -223,7 +223,7 @@ SCRIPTLINKS         += guest-console
 SCRIPTLINKS            += hyperspec
 
 ## Random odds and ends.
-DOTLINKS               += .lesskey .infokey .sqliterc
+DOTLINKS               += .infokey .sqliterc
 DOTLINKS               += .gdbinit .toprc .aspell.conf
 DOTLINKS               += .dircolors .colordiffrc .screenrc .tmux.conf
 DOTLINKS               += .cvsrc .indent.pro .ditz-config
@@ -249,6 +249,11 @@ DOTLINKS           += .mc/ini .mc/panels.ini
 DOTLINKS               += .parallel/config
 .parallel/config_SRC    = parallel-config
 
+all:: $(HOME)/.less
+$(HOME)/.less: dot/lesskey
+       $(V_AT)rm -f $(HOME)/.lesskey
+       $(call v_tag,LESSKEY)lesskey -o$@ $<
+
 ###--------------------------------------------------------------------------
 ### X11 configuration.