acrn-hypervisor/misc/cbc_lifecycle/Makefile
Alek Du 4eae78cb71 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>
2018-07-03 15:32:11 +08:00

15 lines
431 B
Makefile

OUT_DIR ?= .
$(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c $(TOOLS_OUT)/libacrn-mngr.a
gcc -o $@ cbc_lifecycle.c -pthread -L$(TOOLS_OUT) -lacrn-mngr
clean:
rm $(OUT_DIR)/cbc_lifecycle
install: $(OUT_DIR)/cbc_lifecycle cbc_lifecycle.service
install -d $(DESTDIR)/usr/bin
install -t $(DESTDIR)/usr/bin $<
install -d $(DESTDIR)/usr/lib/systemd/system/
install -p -m 0644 cbc_lifecycle.service $(DESTDIR)/usr/lib/systemd/system/