Skip to content

Commit

Permalink
build: avoid non-portable install options
Browse files Browse the repository at this point in the history
The -T and -D options are only available in GNU install.
  • Loading branch information
jpgrayson committed Oct 5, 2023
1 parent 3546ef2 commit 8814de4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions completion/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ install: install-bash install-fish install-zsh

install-bash: stgit.bash
$(INSTALL) -d -m 755 $(DESTDIR)$(bashdir)
$(INSTALL) -T -m 644 stgit.bash $(DESTDIR)$(bashdir)/stg
$(INSTALL) -m 644 stgit.bash $(DESTDIR)$(bashdir)/stg

install-fish: stg.fish
$(INSTALL) -d -m 755 $(DESTDIR)$(fishdir)
$(INSTALL) -T -m 644 stg.fish $(DESTDIR)$(fishdir)/stg.fish
$(INSTALL) -m 644 stg.fish $(DESTDIR)$(fishdir)/stg.fish

install-zsh:
$(INSTALL) -d -m 755 $(DESTDIR)$(zshdir)
$(INSTALL) -T -m 644 stgit.zsh $(DESTDIR)$(zshdir)/_stg
$(INSTALL) -m 644 stgit.zsh $(DESTDIR)$(zshdir)/_stg

.PHONY: install install-bash install-fish install-zsh

Expand Down
4 changes: 2 additions & 2 deletions contrib/vim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ install: install-ftdetect install-syntax

install-ftdetect: ftdetect/stg.vim
$(INSTALL) -d $(DESTDIR)$(prefix)/share/vim/vimfiles/ftdetect
$(INSTALL) -D -m 0644 $< $(DESTDIR)$(prefix)/share/vim/vimfiles/ftdetect
$(INSTALL) -m 0644 $< $(DESTDIR)$(prefix)/share/vim/vimfiles/ftdetect

install-syntax: syntax/*.vim
$(INSTALL) -d $(DESTDIR)$(prefix)/share/vim/vimfiles/syntax
$(INSTALL) -D -m 0644 $? $(DESTDIR)$(prefix)/share/vim/vimfiles/syntax
$(INSTALL) -m 0644 $? $(DESTDIR)$(prefix)/share/vim/vimfiles/syntax

clean:

Expand Down

0 comments on commit 8814de4

Please sign in to comment.