Tools:acrnlog: install acrnlog.service

Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
Yan, Like 2018-06-01 15:04:56 +08:00 committed by lijinxia
parent 5a9e9b1b49
commit 476f39e032
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ OUT_DIR ?= .
all: all:
$(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread $(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
cp acrnlog.service $(OUT_DIR)/acrnlog.service
clean: clean:
rm $(OUT_DIR)/acrnlog rm $(OUT_DIR)/acrnlog
@ -10,3 +11,5 @@ clean:
install: $(OUT_DIR)/acrnlog install: $(OUT_DIR)/acrnlog
install -d $(DESTDIR)/usr/bin install -d $(DESTDIR)/usr/bin
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnlog install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnlog
install -d $(DESTDIR)/usr/lib/systemd/system
install -p -D -m 0644 $(OUT_DIR)/acrnlog.service $(DESTDIR)/usr/lib/systemd/system