Skip to content

Commit 211692d

Browse files
Add support for OS X
Since OS X doesn't support the `-D` install option, we use `-d` to create a directory, followed by the file that needs to be moved there.
1 parent 3c6fe80 commit 211692d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ all:
1313

1414
.PHONY: install
1515
install:
16-
install -Dm755 sshcd -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
17-
install -Dm644 LICENSE -- "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)/LICENSE"
16+
install -dm755 "$(DESTDIR)$(BINDIR)"
17+
install -m755 sshcd "$(DESTDIR)$(BINDIR)/$(COMMAND)"
18+
install -dm644 "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)"
19+
install -m644 LICENSE "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)/LICENSE"
1820

1921
.PHONY: uninstall
2022
uninstall:
@@ -25,4 +27,3 @@ uninstall:
2527
.PHONY: clean
2628
clean:
2729
@echo Nothing to clean
28-

0 commit comments

Comments
 (0)