* [PATCH for-4.9] build: more adjustments to top-level Makefile dependencies
@ 2017-05-19 11:55 Wei Liu
2017-05-19 12:09 ` Ian Jackson
0 siblings, 1 reply; 3+ messages in thread
From: Wei Liu @ 2017-05-19 11:55 UTC (permalink / raw)
To: Xen-devel; +Cc: Ian Jackson, Julien Grall, Wei Liu
In the original code, top-level dist target unconditionally invokes
dist target for tools/include, which is wrong when tools component is
not enabled.
Make dist-tools depend on dist-tools-public-headers, which depends on
build-tools-public-headers.
Discovered by Travis-CI.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Julien Grall <Julien.Grall@arm.com>
Tested with
1. ./configure --disable-tools --disable-stubdom then make -j8 dist
2. ./configure, make -j8 dist-stubdom then make -j8 dist-tools
3. ./configure --disable-tools then make -j8 dist
3. ./configure, make -j8 dist
Travis is now happy, too.
I'm sure make --enable-stubdom --disable-tools didn't work with or
without this patch, because tools/include needs files generated by
tools' ./configure.
---
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e958bdc44b..fc30b3cc29 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,10 @@ export DESTDIR
build-tools-public-headers:
$(MAKE) -C tools/include
+.PHONY: dist-tools-public-headers
+dist-tools-public-headers: build-tools-public-headers
+ $(MAKE) -C tools/include dist
+
# build and install everything into the standard system directories
.PHONY: install
install: $(TARGS_INSTALL)
@@ -80,13 +84,15 @@ test:
.PHONY: dist
dist: DESTDIR=$(DISTDIR)/install
dist: $(TARGS_DIST) dist-misc
- make -C tools/include dist
dist-misc:
$(INSTALL_DIR) $(DISTDIR)/
$(INSTALL_DATA) ./COPYING $(DISTDIR)
$(INSTALL_DATA) ./README $(DISTDIR)
$(INSTALL_PROG) ./install.sh $(DISTDIR)
+
+
+dist-tools: dist-tools-public-headers
dist-%: DESTDIR=$(DISTDIR)/install
dist-%: install-%
@: # do nothing
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH for-4.9] build: more adjustments to top-level Makefile dependencies
2017-05-19 11:55 [PATCH for-4.9] build: more adjustments to top-level Makefile dependencies Wei Liu
@ 2017-05-19 12:09 ` Ian Jackson
2017-05-19 13:22 ` Julien Grall
0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2017-05-19 12:09 UTC (permalink / raw)
To: Wei Liu; +Cc: Xen-devel, Julien Grall
Wei Liu writes ("[PATCH for-4.9] build: more adjustments to top-level Makefile dependencies"):
> In the original code, top-level dist target unconditionally invokes
> dist target for tools/include, which is wrong when tools component is
> not enabled.
>
> Make dist-tools depend on dist-tools-public-headers, which depends on
> build-tools-public-headers.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH for-4.9] build: more adjustments to top-level Makefile dependencies
2017-05-19 12:09 ` Ian Jackson
@ 2017-05-19 13:22 ` Julien Grall
0 siblings, 0 replies; 3+ messages in thread
From: Julien Grall @ 2017-05-19 13:22 UTC (permalink / raw)
To: Ian Jackson, Wei Liu; +Cc: Xen-devel
Hi,
On 19/05/17 13:09, Ian Jackson wrote:
> Wei Liu writes ("[PATCH for-4.9] build: more adjustments to top-level Makefile dependencies"):
>> In the original code, top-level dist target unconditionally invokes
>> dist target for tools/include, which is wrong when tools component is
>> not enabled.
>>
>> Make dist-tools depend on dist-tools-public-headers, which depends on
>> build-tools-public-headers.
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-19 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-19 11:55 [PATCH for-4.9] build: more adjustments to top-level Makefile dependencies Wei Liu
2017-05-19 12:09 ` Ian Jackson
2017-05-19 13:22 ` Julien Grall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).