From 3352b2a7b1c2d1c5994150f48f7e81c1ee2b1cc8 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 11 May 2020 15:36:18 -0700 Subject: [PATCH] build: Copy headers to build/include on build For completeness, now all output is placed into build/ in the appropriate location. In the future, 'make install' can be changed to simply copy from there instead of rebuilding. Signed-off-by: Ben Walker Change-Id: I236b37868b5f4a2d5c5b910090aeaa9dff0501e2 Signed-off-by: Ben Walker Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2381 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Paul Luse Reviewed-by: Darek Stojaczyk Reviewed-by: Jim Harris --- Makefile | 2 ++ include/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2276f07925..5cef1c0a42 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,7 @@ clean: $(DIRS-y) $(Q)rm -rf build/bin $(Q)rm -rf build/fio $(Q)rm -rf build/examples + $(Q)rm -rf build/include install: all $(Q)echo "Installed to $(DESTDIR)$(CONFIG_PREFIX)" @@ -111,6 +112,7 @@ build_dir: mk/cc.mk $(Q)mkdir -p build/bin $(Q)mkdir -p build/fio $(Q)mkdir -p build/examples + $(Q)mkdir -p build/include/spdk include/spdk/config.h: mk/config.mk scripts/genconfig.py $(Q)echo "#ifndef SPDK_CONFIG_H" > $@.tmp; \ diff --git a/include/Makefile b/include/Makefile index ed0c65667c..5bf07bd0ad 100644 --- a/include/Makefile +++ b/include/Makefile @@ -47,7 +47,7 @@ endif .PHONY: $(INSTALLED_HEADERS) all: - @: + $(Q)cp $(SPDK_ROOT_DIR)/include/spdk/*.h $(SPDK_ROOT_DIR)/build/include/spdk/ clean: @: