]> xenbits.xensource.com Git - xen.git/commitdiff
tools/libs: Add rule to generate headers.lst
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Feb 2021 06:29:31 +0000 (06:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Feb 2021 17:10:33 +0000 (17:10 +0000)
abi-dumper needs a list of the public header files for shared objects, and
only accepts this in the form of a file.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/libs/.gitignore [new file with mode: 0644]
tools/libs/libs.mk

diff --git a/tools/libs/.gitignore b/tools/libs/.gitignore
new file mode 100644 (file)
index 0000000..4a13126
--- /dev/null
@@ -0,0 +1 @@
+*/headers.lst
index 0b3381755a0c9b4724e573eb4a843506f90fbef1..7970627ac8faf23598f12b7b02e726dfc41167ea 100644 (file)
@@ -76,6 +76,10 @@ endif
 
 headers.chk: $(AUTOINCS)
 
+headers.lst: FORCE
+       @{ set -e; $(foreach h,$(LIBHEADERS),echo $(h);) } > $@.tmp
+       @$(call move-if-changed,$@.tmp,$@)
+
 libxen$(LIBNAME).map:
        echo 'VERS_$(MAJOR).$(MINOR) { global: *; };' >$@
 
@@ -118,9 +122,12 @@ TAGS:
 clean:
        rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS)
        rm -f lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) lib$(LIB_FILE_NAME).so.$(MAJOR)
-       rm -f headers.chk
+       rm -f headers.chk headers.lst
        rm -f $(PKG_CONFIG)
        rm -f _paths.h
 
 .PHONY: distclean
 distclean: clean
+
+.PHONY: FORCE
+FORCE: