]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/include/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / include / Makefile
index 2608269879fe12f87380aca7bd10cefb59c4cdaf..ed0c65667c54a38102f15e66dedf7ef8c70378e2 100644 (file)
@@ -37,8 +37,14 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
 HEADERS := $(wildcard $(SPDK_ROOT_DIR)/include/spdk/*.h)
 INSTALLED_HEADERS := $(patsubst $(SPDK_ROOT_DIR)/include%,$(DESTDIR)$(includedir)%,$(HEADERS))
 
-$(DESTDIR)$(includedir)%.h:
+$(INSTALLED_HEADERS):
+ifeq ($(MAKECMDGOALS),install)
        $(INSTALL_HEADER)
+else
+       $(UNINSTALL_HEADER)
+endif
+
+.PHONY: $(INSTALLED_HEADERS)
 
 all:
        @:
@@ -48,4 +54,6 @@ clean:
 
 install: $(INSTALLED_HEADERS)
 
+uninstall: $(INSTALLED_HEADERS)
+
 include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk