1
0
mirror of https://tildegit.org/tomasino/pb.git synced 2024-12-23 11:35:09 +01:00

Fix makefile installing pb.d to root

On systems without bash completion, CPLDIR is empty, but the makefile
still tries to install the bash completion and fails.
This commit is contained in:
Paper 2020-02-04 18:30:00 +01:00 committed by Paper Mountain Studio
parent 7edfbbecd6
commit 243709cee7

View File

@ -26,7 +26,7 @@ install:
@mkdir -p $(MANDIR)/man1 @mkdir -p $(MANDIR)/man1
@cp -f pb.1 $(MANDIR)/man1/pb.1 @cp -f pb.1 $(MANDIR)/man1/pb.1
@chmod 644 $(MANDIR)/man1/pb.1 @chmod 644 $(MANDIR)/man1/pb.1
ifdef CPLDIR ifeq ($(CPLDIR),)
@echo Installing the command completion to $(CPLDIR) @echo Installing the command completion to $(CPLDIR)
@mkdir -p $(CPLDIR) @mkdir -p $(CPLDIR)
@cp -f pb.d $(CPLDIR)/pb @cp -f pb.d $(CPLDIR)/pb
@ -38,7 +38,7 @@ uninstall:
@rm -f $(BINDIR)/pb @rm -f $(BINDIR)/pb
@echo Removing the manual page from $(MANDIR)/man1 @echo Removing the manual page from $(MANDIR)/man1
@rm -f $(BINDIR)/man1/pb.1 @rm -f $(BINDIR)/man1/pb.1
ifdef CPLDIR ifeq ($(CPLDIR),)
@echo Removing the command completion from $(CPLDIR) @echo Removing the command completion from $(CPLDIR)
@rm -f $(CPLDIR)/pb @rm -f $(CPLDIR)/pb
endif endif