build: don't include spdk.app.mk in test/cpp_headers

This Makefile doesn't depend on anything in spdk.app.mk,
and provides its own rules that are different than any
of the other applications (including unit tests).

The exception here is the simple "install : app" rule.
Just add that rule to the cpp_headers Makefile instead
of including spdk.app.mk just for that rule.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I684dfba9108dfa7f06d7eb4acecd6806e5797312

Reviewed-on: https://review.gerrithub.io/434282
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2018-11-21 01:45:04 -07:00
parent 5f03a9c1f3
commit 092eb22107

View File

@ -33,11 +33,12 @@
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
HEADERS := $(wildcard $(SPDK_ROOT_DIR)/include/spdk/*.h)
CXX_SRCS := $(patsubst %.h,%.cpp,$(notdir $(HEADERS)))
install : all
%.cpp: $(SPDK_ROOT_DIR)/include/spdk/%.h
$(Q)echo " TEST_HEADER include/spdk/$(notdir $<)"; \
echo '#include "spdk/$(notdir $<)"' > $@