mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
makefile: install the demo scripts
The demos scripts are not installed when "make install" is invoked. This patch adds a rule to copy them to /usr/share/acrn Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
This commit is contained in:
parent
7cbb5f1cd0
commit
858f411b10
8
Makefile
8
Makefile
@ -80,6 +80,8 @@ DISTCLEAN_OBJS := $(shell find $(BASEDIR) -name '*.o')
|
|||||||
|
|
||||||
PROGRAM := acrn-dm
|
PROGRAM := acrn-dm
|
||||||
|
|
||||||
|
SAMPLES := $(wildcard samples/*)
|
||||||
|
|
||||||
all: include/version.h $(PROGRAM)
|
all: include/version.h $(PROGRAM)
|
||||||
@echo -n ""
|
@echo -n ""
|
||||||
|
|
||||||
@ -117,5 +119,9 @@ $(DM_OBJDIR)/%.o: %.c $(HEADERS)
|
|||||||
[ ! -e $@ ] && mkdir -p $(dir $@); \
|
[ ! -e $@ ] && mkdir -p $(dir $@); \
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
install: $(DM_OBJDIR)/$(PROGRAM)
|
install: $(DM_OBJDIR)/$(PROGRAM) install-samples
|
||||||
install -D $(DM_OBJDIR)/$(PROGRAM) $(DESTDIR)/usr/bin/$(PROGRAM)
|
install -D $(DM_OBJDIR)/$(PROGRAM) $(DESTDIR)/usr/bin/$(PROGRAM)
|
||||||
|
|
||||||
|
install-samples: $(SAMPLES)
|
||||||
|
install -d $(DESTDIR)/usr/share/acrn/demo
|
||||||
|
install -t $(DESTDIR)/usr/share/acrn/demo $^
|
||||||
|
Loading…
Reference in New Issue
Block a user