Skip to content

Commit

Permalink
Merge pull request #1 from miguelinux/add-demos-scripts
Browse files Browse the repository at this point in the history
makefile: install the demo scripts
  • Loading branch information
jren1 authored Mar 8, 2018
2 parents eb5fb05 + 858f411 commit 7a3f139
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ DISTCLEAN_OBJS := $(shell find $(BASEDIR) -name '*.o')

PROGRAM := acrn-dm

SAMPLES := $(wildcard samples/*)

all: include/version.h $(PROGRAM)
@echo -n ""

Expand Down Expand Up @@ -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 $^

0 comments on commit 7a3f139

Please sign in to comment.