aboutsummaryrefslogtreecommitdiffstats
path: root/cli/Makefile
blob: 04313a601bcd2dd922ec937ca72958442249f2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX ?= /usr
MANPREFIX ?= $(PREFIX)/share/man
BASHCOMP_PATH ?= $(DESTDIR)$(PREFIX)/share/bash-completion/completions

all:

install: all installman
	install -v -d $(DESTDIR)$(PREFIX)/bin
	install -v -m 0755 icevault $(DESTDIR)$(PREFIX)/bin
	install -v -d $(BASHCOMP_PATH)
	install -v -m 0644 bash-completion.sh $(BASHCOMP_PATH)/icevault

installman:
	install -v -d $(DESTDIR)$(MANPREFIX)/man1
	gzip -fkn icevault.1
	install -v -m 0644 icevault.1.gz $(DESTDIR)$(MANPREFIX)/man1

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/icevault $(BASHCOMP_PATH)/icevault $(DESTDIR)$(MANPREFIX)/man1/icevault.1.gz 

clean:
	rm -f icevault.1.gz

.PHONY: all install installman clean