Skip to content

Commit 4eae78c

Browse files
alekdulijinxia
authored andcommitted
cbc: fix the install issue when do make misc-install only
The install -D is misleading people since it only creates the leading directories. The problem was hidden due to we always call make install and the destination folder was already created in previous install script. Signed-off-by: Alek Du <alek.du@intel.com>
1 parent 5907400 commit 4eae78c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

misc/cbc_attach/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ all:
66
clean:
77
rm -rf $(OUT_DIR)/cbc_attach
88

9-
install: $(OUT_DIR)/cbc_attach
9+
install: $(OUT_DIR)/cbc_attach cbc_attach.service
1010
install -d $(DESTDIR)/usr/bin
1111
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/cbc_attach
12-
install -p -D -m 0644 cbc_attach.service $(DESTDIR)/usr/lib/systemd/system/
12+
install -d $(DESTDIR)/usr/lib/systemd/system/
13+
install -p -m 0644 cbc_attach.service $(DESTDIR)/usr/lib/systemd/system/

misc/cbc_lifecycle/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ clean:
1010
install: $(OUT_DIR)/cbc_lifecycle cbc_lifecycle.service
1111
install -d $(DESTDIR)/usr/bin
1212
install -t $(DESTDIR)/usr/bin $<
13-
install -p -D -m 0644 cbc_lifecycle.service $(DESTDIR)/usr/lib/systemd/system/
13+
install -d $(DESTDIR)/usr/lib/systemd/system/
14+
install -p -m 0644 cbc_lifecycle.service $(DESTDIR)/usr/lib/systemd/system/

0 commit comments

Comments
 (0)