Adjust VPATH to work for check-hyperv (and simplify the modpost wrapper)

This commit is contained in:
Ben Hutchings 2016-02-21 16:32:09 +00:00
parent eb215f16de
commit 7d90293de3
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Normalise OUTDIR to avoid triggering rebuilds
override OUTDIR := $(patsubst ./%,%,$(OUTDIR))
VPATH = $(top_srcdir)/$(OUTDIR)
VPATH = $(top_rulesdir)/$(OUTDIR) $(top_srcdir)/$(OUTDIR)
SHELL = /bin/sh -e

View File

@ -18,5 +18,5 @@ modpost.real-%:
modpost-opts.h: $(top_srcdir)/scripts/mod/modpost.c
python $(wrapperdir)/gendef.py $< > $@
modpost.o: $(wrapperdir)/modpost.c modpost-opts.h
modpost.o: modpost.c modpost-opts.h
$(CC) $(CFLAGS) -I $(CURDIR) -c -o $@ $<