From e7b2ec28863635f256587750115c82756cbf12fc Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Wed, 22 Jun 2016 02:23:14 -0700 Subject: [PATCH] Add C++ models to make install target Summary: C++ header models were not included into make install target. This made C++ analysis much worse for infer released using 'make install' Reviewed By: jvillard Differential Revision: D3463000 fbshipit-source-id: 6f7e9b9 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 369a36f0c..f0118e6c6 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,10 @@ ifeq ($(BUILD_C_ANALYZERS),yes) done test -d $(DESTDIR)$(libdir)/infer/infer/lib/clang_wrappers/ || \ $(MKDIR_P) $(DESTDIR)$(libdir)/infer/infer/lib/clang_wrappers/ + @for i in $$(find infer/models/cpp/include/ -type d); do \ + test -d $(DESTDIR)$(libdir)/infer/$$i || \ + $(MKDIR_P) $(DESTDIR)$(libdir)/infer/$$i; \ + done endif ifeq ($(BUILD_JAVA_ANALYZERS),yes) test -d $(DESTDIR)$(libdir)/infer/infer/lib/java/ || \ @@ -185,6 +189,9 @@ ifeq ($(BUILD_C_ANALYZERS),yes) @for i in $$(find infer/lib/specs/*); do \ $(INSTALL_DATA) -C $$i $(DESTDIR)$(libdir)/infer/$$i; \ done + @for i in $$(find infer/models/cpp/include/ -not -type d); do \ + $(INSTALL_DATA) -C $$i $(DESTDIR)$(libdir)/infer/$$i; \ + done $(INSTALL_PROGRAM) -C $(INFERCLANG_BIN) $(DESTDIR)$(libdir)/infer/infer/bin/ endif ifneq ($(XCODE_SELECT),no)