-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (22 loc) · 821 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
all: hoorex man
man: hoorex.1
hoorex: VERSION.txt hoorex.in
sed -e "s/^HOOREX_VERSION.*/HOOREX_VERSION = \'$$(cat VERSION.txt)\'/" hoorex.in > hoorex
chmod a+x hoorex
hoorex.1: hoorex.1.in
a2x -f manpage $?
install: hoorex man
install -m 0755 -D hoorex $(DESTDIR)/usr/bin/hoorex
install -m 0644 -D hoorex.1 $(DESTDIR)/usr/man/man1/hoorex.1
install -m 0644 -D completions/zsh/_hoorex $(DESTDIR)/usr/share/zsh/site-functions/_hoorex
install -m 0644 -D completions/bash/hoorex $(DESTDIR)/usr/share/bash-completion/completions/hoorex
uninstall:
rm -f $(DESTDIR)/usr/bin/hoorex
rm -f $(DESTDIR)/usr/man/man1/hoorex.1*
rm -f $(DESTDIR)/usr/share/zsh/site-functions/_hoorex
rm -f $(DESTDIR)/usr/share/bash-completion/completions/hoorex
clean:
rm -f hoorex.1 hoorex
.PHONY: clean
.PHONY: hoorex
.PHONY: man