From: Ian Jackson Date: Fri, 25 May 2018 16:01:15 +0000 (+0100) Subject: tools/tests: Allow a test subdir to have `install' and `uninstall' targets X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3669 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c862bcc7056ffd039bd3ce2a56b1a21c3e32de45;p=xen.git tools/tests: Allow a test subdir to have `install' and `uninstall' targets Signed-off-by: Ian Jackson Reviewed-by: Roger Pau Monné Acked-by: Wei Liu --- diff --git a/tools/tests/Makefile b/tools/tests/Makefile index f6942a93fb..26c46b4915 100644 --- a/tools/tests/Makefile +++ b/tools/tests/Makefile @@ -13,11 +13,8 @@ endif SUBDIRS-$(CONFIG_X86) += x86_emulator SUBDIRS-y += xen-access SUBDIRS-y += xenstore +SUBDIRS-y += depriv SUBDIRS-$(CONFIG_HAS_PCI) += vpci .PHONY: all clean install distclean uninstall -all clean distclean: %: subdirs-% - -install: - -uninstall: +all clean distclean install uninstall: %: subdirs-% diff --git a/tools/tests/depriv/Makefile b/tools/tests/depriv/Makefile index 2af1e29b06..643d2c50c1 100644 --- a/tools/tests/depriv/Makefile +++ b/tools/tests/depriv/Makefile @@ -39,4 +39,6 @@ clean: .PHONY: distclean distclean: clean +install uninstall: + -include $(DEPS_INCLUDE) diff --git a/tools/tests/mce-test/Makefile b/tools/tests/mce-test/Makefile index 07a774aeed..1395df38ac 100644 --- a/tools/tests/mce-test/Makefile +++ b/tools/tests/mce-test/Makefile @@ -8,3 +8,5 @@ clean: distclean: $(MAKE) -C tools distclean + +install uninstall: diff --git a/tools/tests/mem-sharing/Makefile b/tools/tests/mem-sharing/Makefile index 497696f19c..5cd96e4cc9 100644 --- a/tools/tests/mem-sharing/Makefile +++ b/tools/tests/mem-sharing/Makefile @@ -27,3 +27,5 @@ memshrtool: memshrtool.o $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenctrl) -include $(DEPS_INCLUDE) + +install uninstall: diff --git a/tools/tests/xen-access/Makefile b/tools/tests/xen-access/Makefile index 0ca3f6f4c9..131c9f375d 100644 --- a/tools/tests/xen-access/Makefile +++ b/tools/tests/xen-access/Makefile @@ -28,4 +28,6 @@ distclean: clean xen-access: xen-access.o Makefile $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenevtchn) +install uninstall: + -include $(DEPS_INCLUDE) diff --git a/tools/tests/xenstore/Makefile b/tools/tests/xenstore/Makefile index b37b90d03a..a367d88803 100644 --- a/tools/tests/xenstore/Makefile +++ b/tools/tests/xenstore/Makefile @@ -24,4 +24,6 @@ distclean: clean xs-test: xs-test.o Makefile $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenstore) +install uninstall: + -include $(DEPS_INCLUDE)