Merge drm/drm-next into drm-intel-next-queued
[linux-2.6-block.git] / drivers / gpu / drm / i915 / Makefile.header-test
index 88ad1ad31c9bed7fd4b4d91bdf0d2a9b80fdd1c1..59908b06794233c19b46dbef3aebb5a81ebe5c87 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © 2019 Intel Corporation
 
 # Test the headers are compilable as standalone units
-header_test := \
+header-test-$(CONFIG_DRM_I915_WERROR) := \
        i915_active_types.h \
        i915_debugfs.h \
        i915_drv.h \
@@ -25,13 +25,3 @@ header_test := \
        intel_sideband.h \
        intel_uncore.h \
        intel_wakeref.h
-
-quiet_cmd_header_test = HDRTEST $@
-      cmd_header_test = echo "\#include \"$(<F)\"" > $@
-
-header_test_%.c: %.h
-       $(call cmd,header_test)
-
-i915-$(CONFIG_DRM_I915_WERROR) += $(foreach h,$(header_test),$(patsubst %.h,header_test_%.o,$(h)))
-
-clean-files += $(foreach h,$(header_test),$(patsubst %.h,header_test_%.c,$(h)))