Skip to content

Commit

Permalink
make: depend on dfrs for completion and install targets
Browse files Browse the repository at this point in the history
  • Loading branch information
anthraxx committed May 16, 2020
1 parent d1a1a24 commit 3f12769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -37,15 +37,15 @@ man: contrib/man/dfrs.1
contrib/man/%: contrib/man/%.scd
$(SCDOC) < $^ > $@

completions:
completions: dfrs
target/$(CARGO_TARGET)/dfrs completions bash | $(INSTALL) -Dm 644 /dev/stdin target/completion/bash/dfrs
target/$(CARGO_TARGET)/dfrs completions zsh | $(INSTALL) -Dm 644 /dev/stdin target/completion/zsh/_dfrs
target/$(CARGO_TARGET)/dfrs completions fish | $(INSTALL) -Dm 644 /dev/stdin target/completion/fish/dfrs.fish

clean:
$(RM) -rf target contrib/man/*.1

install: docs
install: dfrs docs
$(INSTALL) -Dm 755 target/$(CARGO_TARGET)/dfrs -t $(DESTDIR)$(BINDIR)
$(INSTALL) -Dm 644 contrib/man/*.1 -t $(DESTDIR)$(MANDIR)/man1
$(INSTALL) -Dm 644 target/completion/bash/dfrs -t $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions
Expand Down

0 comments on commit 3f12769

Please sign in to comment.