diff options
author | Joursoir <chat@joursoir.net> | 2021-06-22 08:58:11 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-06-22 08:58:11 +0000 |
commit | 09e8e0a1c7e285ebafde075778b8df62f9b5e388 (patch) | |
tree | d33ec9d04f9f47484d18322f5f8c1658bb6de696 /Makefile | |
parent | 7bc09f76bb74fd75362b9e21bd36d513b5dbf2f6 (diff) | |
download | lock-password-09e8e0a1c7e285ebafde075778b8df62f9b5e388.tar.gz lock-password-09e8e0a1c7e285ebafde075778b8df62f9b5e388.tar.bz2 lock-password-09e8e0a1c7e285ebafde075778b8df62f9b5e388.zip |
makefile: delete echo, add bash completion
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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 |