mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-03 12:49:45 +00:00
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>
15 lines
431 B
Makefile
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/
|