[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH XTF] build: introduce a dist target



The install target doesn't honour $PREFIX. Introduce a dist target to
make it easier to package the artifacts.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 1a8099d..d625b90 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 MAKEFLAGS += -r
 ROOT := $(abspath $(CURDIR))
 DESTDIR ?= $(ROOT)/dist
+DISTDIR ?= $(ROOT)/dist
 PREFIX ?= $(ROOT)
 
 .PHONY: all
@@ -10,6 +11,10 @@ all:
                $(MAKE) -C $$D build; \
        done
 
+.PHONY: dist
+dist: DESTDIR=$(DISTDIR)$(PREFIX)
+dist: install
+
 .PHONY: install
 install:
        @mkdir -p $(DESTDIR)
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.