[PATCH 1/4] cpukit/libxz: Fix the include path to remove the make warnings.

Chris Johns chrisj at rtems.org
Wed May 24 02:39:51 UTC 2017


---
 cpukit/Makefile.am   |  5 ++---
 cpukit/preinstall.am | 13 ++++---------
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am
index 1987586b7c..3206ee2123 100644
--- a/cpukit/Makefile.am
+++ b/cpukit/Makefile.am
@@ -50,15 +50,14 @@ include_uuid_HEADERS = libmisc/uuid/uuid.h
 include_utf8procdir = $(includedir)/utf8proc
 include_utf8proc_HEADERS = libmisc/utf8proc/utf8proc.h
 
-include_xzdir = $(includedir)
-include_xz_HEADERS = libmisc/xz/xz.h
-
 include_sysdir = $(includedir)/sys
 include_sys_HEADERS =
 
 include_HEADERS += include/crypt.h
 include_HEADERS += include/memory.h
 
+include_HEADERS += libmisc/xz/xz.h
+
 include_sys_HEADERS += libcsupport/include/sys/event.h
 include_sys_HEADERS += libcsupport/include/sys/filio.h
 include_sys_HEADERS += libcsupport/include/sys/ioccom.h
diff --git a/cpukit/preinstall.am b/cpukit/preinstall.am
index 2ae31ef987..6f94076cdd 100644
--- a/cpukit/preinstall.am
+++ b/cpukit/preinstall.am
@@ -50,15 +50,6 @@ $(PROJECT_INCLUDE)/utf8proc/utf8proc.h: libmisc/utf8proc/utf8proc.h $(PROJECT_IN
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/utf8proc/utf8proc.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/utf8proc/utf8proc.h
 
-$(PROJECT_INCLUDE)/$(dirstamp):
-	@$(MKDIR_P) $(PROJECT_INCLUDE)
-	@: > $(PROJECT_INCLUDE)/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
-
-$(PROJECT_INCLUDE)/xz.h: libmisc/xz/xz.h $(PROJECT_INCLUDE)/$(dirstamp)
-	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/xz.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/xz.h
-
 $(PROJECT_INCLUDE)/sys/$(dirstamp):
 	@$(MKDIR_P) $(PROJECT_INCLUDE)/sys
 	@: > $(PROJECT_INCLUDE)/sys/$(dirstamp)
@@ -72,6 +63,10 @@ $(PROJECT_INCLUDE)/memory.h: include/memory.h $(PROJECT_INCLUDE)/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/memory.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/memory.h
 
+$(PROJECT_INCLUDE)/xz.h: libmisc/xz/xz.h $(PROJECT_INCLUDE)/$(dirstamp)
+	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/xz.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/xz.h
+
 $(PROJECT_INCLUDE)/sys/event.h: libcsupport/include/sys/event.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/event.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/event.h
-- 
2.12.1



More information about the devel mailing list