summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/ectool/Makefile3
-rw-r--r--util/pmh7tool/Makefile3
-rw-r--r--util/spkmodem_recv/Makefile3
3 files changed, 6 insertions, 3 deletions
diff --git a/util/ectool/Makefile b/util/ectool/Makefile
index 1ef74d25f2..8670def922 100644
--- a/util/ectool/Makefile
+++ b/util/ectool/Makefile
@@ -22,7 +22,8 @@ $(PROGRAM): ec.o ectool.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
install: $(PROGRAM)
- $(INSTALL) $(PROGRAM) $(PREFIX)/sbin
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin
+ $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
clean:
rm -f *.o $(PROGRAM) junit.xml
diff --git a/util/pmh7tool/Makefile b/util/pmh7tool/Makefile
index 9b3921aac2..0a2ebbe147 100644
--- a/util/pmh7tool/Makefile
+++ b/util/pmh7tool/Makefile
@@ -12,7 +12,8 @@ $(PROGRAM): pmh7tool.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
install: $(PROGRAM)
- $(INSTALL) $(PROGRAM) $(PREFIX)/sbin
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin
+ $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
clean:
rm -f *.o $(PROGRAM)
diff --git a/util/spkmodem_recv/Makefile b/util/spkmodem_recv/Makefile
index c9659b44eb..92a3bfe930 100644
--- a/util/spkmodem_recv/Makefile
+++ b/util/spkmodem_recv/Makefile
@@ -5,4 +5,5 @@ INSTALL ?= install
spkmodem-recv:
$(CC) -o $@ $@.c
install: spkmodem-recv
- $(INSTALL) $< -t $(PREFIX)/bin/
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
+ $(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/