Merge pull request #1 from miguelinux/add-demos-scripts

makefile: install the demo scripts
This commit is contained in:
Jack Ren 2018-03-08 12:58:39 +08:00 committed by GitHub
commit 7a3f139321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 $^