about summary refs log tree commit diff
path: root/Makefile
blob: 507cb2e543d62b6673c4c13549614f97e1c762b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PREFIX=${HOME}
DESTDIR=

all:

install:
	for f in x*[!~1]; do install -Dm0755 $$f $(DESTDIR)$(PREFIX)/bin/$$f; done
	# install dereferences symlinks
	ln -sf xls $(DESTDIR)$(PREFIX)/bin/xtree
	install -Dm644 _xtools $(DESTDIR)/$(PREFIX)/share/zsh/site-functions/_xtools
	install -Dm644 -t $(DESTDIR)/$(PREFIX)/share/fish/vendor_completions.d -D fish/completions/*
	install -Dm644 -t $(DESTDIR)/$(PREFIX)/share/fish/vendor_functions.d -D fish/functions/*
	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 >$@