Skip to content

Commit 476f39e

Browse files
lyan3lijinxia
authored andcommitted
Tools:acrnlog: install acrnlog.service
Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Yan, Like <like.yan@intel.com>
1 parent 5a9e9b1 commit 476f39e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/acrnlog/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ OUT_DIR ?= .
33

44
all:
55
$(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
6+
cp acrnlog.service $(OUT_DIR)/acrnlog.service
67

78
clean:
89
rm $(OUT_DIR)/acrnlog
910

1011
install: $(OUT_DIR)/acrnlog
1112
install -d $(DESTDIR)/usr/bin
1213
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnlog
14+
install -d $(DESTDIR)/usr/lib/systemd/system
15+
install -p -D -m 0644 $(OUT_DIR)/acrnlog.service $(DESTDIR)/usr/lib/systemd/system

0 commit comments

Comments
 (0)