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

all:

install:
	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 -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 >$@