]> xenbits.xensource.com Git - xen.git/commitdiff
xl: generate _paths.h
authorWei Liu <wei.liu2@citrix.com>
Thu, 23 Feb 2017 18:28:02 +0000 (18:28 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 27 Feb 2017 16:24:42 +0000 (16:24 +0000)
It is included by xl.h. Previously it was using _paths.h from some other
place. We'd better generate one for xl as well.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
.gitignore
tools/xl/Makefile

index 557b38e1b284ee291c0da6ecf5c0168cdea15d7b..3713b1e2a66e318614cc65bebf3e8ee2356d14e8 100644 (file)
@@ -380,6 +380,7 @@ tools/firmware/etherboot/ipxe/
 tools/python/xen/lowlevel/xl/_pyxl_types.c
 tools/python/xen/lowlevel/xl/_pyxl_types.h
 tools/xenstore/xenstore-watch
+tools/xl/_paths.h
 tools/xl/xl
 
 docs/txt/misc/*.txt
index 32dff405842dc7d02c4cfdb05b1d9894959a547b..7106009d66e82cd013cc98823ff8412dff9b8101 100644 (file)
@@ -20,6 +20,11 @@ $(XL_OBJS): CFLAGS += $(CFLAGS_libxentoollog)
 $(XL_OBJS): CFLAGS += $(CFLAGS_XL)
 $(XL_OBJS): CFLAGS += -include $(XEN_ROOT)/tools/config.h # libxl_json.h needs it.
 
+genpath-target = $(call buildmakevars2header,_paths.h)
+$(eval $(genpath-target))
+
+$(XL_OBJS): _paths.h
+
 .PHONY: all
 all: xl
 
@@ -35,7 +40,7 @@ install: all
 
 .PHONY: clean
 clean:
-       $(RM) -f *.o xl $(DEPS)
+       $(RM) -f *.o xl _paths.h $(DEPS)
 
 distclean: clean