From 09e8e0a1c7e285ebafde075778b8df62f9b5e388 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 22 Jun 2021 08:58:11 +0000 Subject: makefile: delete echo, add bash completion --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bc9348b..354a571 100755 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CC = gcc CFLAGS = -Wall -g #-DDEBUG LIBS = $(shell gpgme-config --cflags --libs) MAN_PATH = /usr/share/man/man1 +COMPLETION_PATH = /usr/share/bash-completion/completions/lpass SOURCES = \ src/lpass.c \ src/exec-cmd.c \ @@ -35,15 +36,13 @@ $(EXECUTABLE): $(OBJECTS) @$(CC) $(CFLAGS) $(LIBS) -c $< -o $@ install: all - @echo installing files to $(PREFIX) - @install -m 755 -v $(EXECUTABLE) $(PREFIX) - @echo installing man page + install -m 755 -v $(EXECUTABLE) $(PREFIX) + install -m 0644 -v contrib/completion/lpass-completion.sh $(COMPLETION_PATH) @cat $(MAN_SOURCES) | gzip > $(MAN_OBJECTS) - @install $(MAN_OBJECTS) $(MAN_PATH) + install $(MAN_OBJECTS) $(MAN_PATH) uninstall: - @echo removing files from $(PREFIX) - @echo deleting man page - @rm -rf \ + rm -rf \ $(PREFIX)/$(EXECUTABLE) \ - $(MAN_PATH)/$(MAN_OBJECTS) \ No newline at end of file + $(MAN_PATH)/$(MAN_OBJECTS) \ + $(COMPLETION_PATH) \ No newline at end of file -- cgit v1.2.3-18-g5258