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:
Miguel Bernal Marin 2018-03-07 22:21:59 -06:00 committed by lijinxia
parent f83411fa30
commit 3b15f510c7
1 changed files with 7 additions and 1 deletions

View File

@ -80,6 +80,8 @@ DISTCLEAN_OBJS := $(shell find $(BASEDIR) -name '*.o')
PROGRAM := acrn-dm
SAMPLES := $(wildcard samples/*)
all: include/version.h $(PROGRAM)
@echo -n ""
@ -117,5 +119,9 @@ $(DM_OBJDIR)/%.o: %.c $(HEADERS)
[ ! -e $@ ] && mkdir -p $(dir $@); \
$(CC) $(CFLAGS) -c $< -o $@
install: $(DM_OBJDIR)/$(PROGRAM)
install: $(DM_OBJDIR)/$(PROGRAM) install-samples
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 $^