Fix makefile trying to install bash_completion on systems without it #4

Manually merged
tomasino merged 2 commits from paper/pb:fix-makefile-1 into master 2020-02-04 17:51:57 +00:00
1 changed files with 4 additions and 8 deletions

View File

@ -19,14 +19,10 @@ endif
install:
@echo Installing the executable to $(BINDIR)
@mkdir -p $(BINDIR)
@cp -f pb $(BINDIR)/pb
@chmod 755 $(BINDIR)/pb
@install -D -m 0755 pb $(BINDIR)/pb
@echo Installing the manual page to $(MANDIR)/man1
@mkdir -p $(MANDIR)/man1
@cp -f pb.1 $(MANDIR)/man1/pb.1
@chmod 644 $(MANDIR)/man1/pb.1
ifdef CPLDIR
@install -D -m 0644 pb.1 $(MANDIR)/man1/pb.1
ifeq ($(CPLDIR),)
@echo Installing the command completion to $(CPLDIR)
@mkdir -p $(CPLDIR)
@cp -f pb.d $(CPLDIR)/pb
@ -38,7 +34,7 @@ uninstall:
@rm -f $(BINDIR)/pb
@echo Removing the manual page from $(MANDIR)/man1
@rm -f $(BINDIR)/man1/pb.1
ifdef CPLDIR
ifeq ($(CPLDIR),)
@echo Removing the command completion from $(CPLDIR)
@rm -f $(CPLDIR)/pb
endif