diff options
author | Theodore Ts'o <tytso@mit.edu> | 2024-01-06 00:18:38 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2024-01-06 00:18:38 -0500 |
commit | 8756b165c2b51f1856be29fea0a9f6f28e13bac1 (patch) | |
tree | 8c1327380596bee8c5f7b30e2b15797240b90611 | |
parent | 658f56f117ae30c403b7a9813742deab87de5312 (diff) | |
download | xfstests-bld-8756b165c2b51f1856be29fea0a9f6f28e13bac1.tar.gz |
Makefile: don't depend on the install -D option
The install program in MacOS/Darwin doesn't support the -D option,
using mkdir -p instead, which is more portable.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,7 +5,7 @@ SCRIPTS = android-xfstests \ KBUILD_SCRIPTS = kbuild kbuild32 install-kconfig -prefix= $(HOME)/bin +bindir= $(HOME)/bin all: $(SCRIPTS) $(KBUILD_SCRIPTS) @@ -13,9 +13,10 @@ clean: rm -f $(SCRIPTS) $(KBUILD_SCRIPTS) install: $(SCRIPTS) $(KBUILD_SCRIPTS) + mkdir -p $(DESTDIR)$(bindir) for i in $(SCRIPTS) $(KBUILD_SCRIPTS) ; do \ - rm -f $(DESTDIR)$(prefix)/$$i ; \ - install -D $$i $(DESTDIR)$(prefix)/$$i; \ + rm -f $(DESTDIR)$(bindir)/$$i ; \ + install $$i $(DESTDIR)$(bindir)/$$i; \ done $(SCRIPTS): %: run-fstests/%.sh.in |