]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: only install *format.h headers in install-qa
authorChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2015 04:48:52 +0000 (14:48 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 31 Jul 2015 04:48:52 +0000 (14:48 +1000)
Now that we've properly split up the headers we don't need to install all
the libxfs-internal headers for xfstests.  Just install the three headers
defining the on-disk format and xfs_arch.h which is required to compile
them instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/Makefile
libxfs/Makefile

index 7ca83cfdf07051198fddc5c900d5f3027da9af58..23b443847fbda02d1965c8e0426566362ed7c92e 100644 (file)
@@ -18,7 +18,9 @@
 TOPDIR = ..
 include $(TOPDIR)/include/builddefs
 
-QAHFILES = libxfs.h \
+QAHFILES = xfs_arch.h
+
+LIBHFILES = libxfs.h \
        libxlog.h \
        atomic.h \
        bitops.h \
@@ -28,14 +30,17 @@ QAHFILES = libxfs.h \
        list.h \
        parent.h \
        radix-tree.h \
-       xfs_arch.h \
        xfs_btree_trace.h \
        xfs_inode.h \
        xfs_log_recover.h \
        xfs_metadump.h \
        xfs_mount.h \
        xfs_trace.h \
-       xfs_trans.h
+       xfs_trans.h \
+       command.h \
+       input.h \
+       path.h \
+       project.h
 
 HFILES = handle.h \
        jdm.h \
@@ -46,7 +51,6 @@ HFILES = handle.h \
 
 PHFILES = darwin.h freebsd.h irix.h linux.h gnukfreebsd.h
 DKHFILES = volume.h fstyp.h dvh.h
-LIBHFILES = command.h input.h path.h project.h
 LSRCFILES = $(shell echo $(PHFILES) | sed -e "s/$(PKG_PLATFORM).h//g")
 LSRCFILES += platform_defs.h.in builddefs.in buildmacros buildrules install-sh
 LSRCFILES += $(DKHFILES) $(LIBHFILES)
index c85f1edcdf0d765f3dacab705ecac8b8e133fca0..3d3b448805ceffc4fb3fad91cc809a61afc029bf 100644 (file)
@@ -14,15 +14,14 @@ LT_AGE = 0
 PKGHFILES = xfs_fs.h \
        xfs_types.h
 
-# headers with build dependencies
-HFILES = init.h \
-       crc32defs.h \
-       crc32table.h \
-       libxfs_priv.h \
-       xfs_dir2_priv.h \
-
 # headers installed in QA targets
-QAHFILES = xfs_alloc.h \
+QAHFILES = \
+       xfs_da_format.h \
+       xfs_format.h \
+       xfs_log_format.h
+
+LIBHFILES = \
+       xfs_alloc.h \
        xfs_alloc_btree.h \
        xfs_attr_leaf.h \
        xfs_attr_sf.h \
@@ -33,14 +32,11 @@ QAHFILES = xfs_alloc.h \
        xfs_attr_remote.h \
        xfs_cksum.h \
        xfs_da_btree.h \
-       xfs_da_format.h \
        xfs_dir2.h \
-       xfs_format.h \
        xfs_ialloc.h \
        xfs_ialloc_btree.h \
        xfs_inode_buf.h \
        xfs_inode_fork.h \
-       xfs_log_format.h \
        xfs_quota_defs.h \
        xfs_sb.h \
        xfs_shared.h \
@@ -49,6 +45,14 @@ QAHFILES = xfs_alloc.h \
        libxfs_io.h \
        libxfs_api_defs.h
 
+
+# headers with build dependencies
+HFILES = init.h \
+       crc32defs.h \
+       crc32table.h \
+       libxfs_priv.h \
+       xfs_dir2_priv.h
+
 CFILES = cache.c \
        crc32.c \
        init.c \
@@ -89,6 +93,7 @@ CFILES = cache.c \
 CFILES += $(PKG_PLATFORM).c
 PCFILES = darwin.c freebsd.c irix.c linux.c
 LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g")
+LSRCFILES += $(LIBHFILES)
 LSRCFILES += gen_crc32table.c
 
 #
@@ -133,7 +138,7 @@ include $(BUILDRULES)
 install: default
        $(INSTALL) -m 755 -d $(PKG_INC_DIR)
 
-install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(QAHFILES))
+install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES) $(QAHFILES))
 
 %-hdrs:
        $(Q)$(LN_S) -f $(PWD)/libxfs/$* $(TOPDIR)/include/xfs/$*