From 80438cd2af17083d85bb12da6756961abfedecbb Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 21 Mar 2015 17:13:32 +0100 Subject: Move the CLI part to a dedicated dir, with a separate Makefile. --- cli/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cli/Makefile (limited to 'cli/Makefile') diff --git a/cli/Makefile b/cli/Makefile new file mode 100644 index 0000000..04313a6 --- /dev/null +++ b/cli/Makefile @@ -0,0 +1,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 -- cgit v1.2.3