aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2024-01-06 00:18:38 -0500
committerTheodore Ts'o <tytso@mit.edu>2024-01-06 00:18:38 -0500
commit8756b165c2b51f1856be29fea0a9f6f28e13bac1 (patch)
tree8c1327380596bee8c5f7b30e2b15797240b90611
parent658f56f117ae30c403b7a9813742deab87de5312 (diff)
downloadxfstests-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--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index afbc0155..bab7c17f 100644
--- a/Makefile
+++ b/Makefile
@@ -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