Skip to content

Commit 3035186

Browse files
jameshilliardpaulkocialkowski
authored andcommitted
Makefile: avoid GNU install options
The install-tools target installs the sunxi-fel man page with "install -D -m0644 -t", which is supported by GNU install but not by BSD install. This breaks "make install" on systems such as macOS. Create the man page directory explicitly and install the file to its full destination path instead. This matches the existing directory creation used for the binary install path and works with both GNU and BSD install. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
1 parent d3d038c commit 3035186

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ install-tools: $(TOOLS)
9696
@set -ex ; for l in $(FEXC_LINKS) ; do \
9797
ln -nfs sunxi-fexc $(DESTDIR)$(BINDIR)/$$l ; \
9898
done
99-
install -D -m0644 -t $(DESTDIR)$(MANDIR) sunxi-fel.1
99+
install -d $(DESTDIR)$(MANDIR)
100+
install -m0644 sunxi-fel.1 $(DESTDIR)$(MANDIR)/sunxi-fel.1
100101

101102
install-target-tools: $(TARGET_TOOLS)
102103
install -d $(DESTDIR)$(BINDIR)

0 commit comments

Comments
 (0)