about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-05-02 16:50:56 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-05-02 16:50:56 +0200
commitfda9e8e81c386422be050865dbb490f44f7e7f97 (patch)
treeb6157a859271cf2ab6cb0b385c6bd30d8514a738 /Makefile
parent81e09053db4f18f2ac1c0db1679979168de599e0 (diff)
downloadxtools-fda9e8e81c386422be050865dbb490f44f7e7f97.tar.gz
xtools-fda9e8e81c386422be050865dbb490f44f7e7f97.tar.xz
xtools-fda9e8e81c386422be050865dbb490f44f7e7f97.zip
Makefile: install manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4cc3477..81f7a90 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,10 @@ DESTDIR=
 all:
 
 install:
-	for f in x*[^~]; do install -Dm0755 $$f $(DESTDIR)$(PREFIX)/bin/$$f; done
+	for f in x*[!~1]; do install -Dm0755 $$f $(DESTDIR)$(PREFIX)/bin/$$f; done
 	install -Dm644 _xtools $(DESTDIR)/$(PREFIX)/share/zsh/site-functions/_xtools
+	install -Dm644 xtools.1 $(DESTDIR)/$(PREFIX)/share/man/man1/xtools.1
+	for f in x*[!~1]; do ln -sf xtools.1 $(DESTDIR)$(PREFIX)/share/man/man1/$$f.1; done
 
 README: xtools.1
 	mandoc -Tutf8 $< | col -bx >$@