From 4803b40690df99d361c39a27eaf230ea2e763919 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 1 Jul 2024 12:14:18 +0200 Subject: add 'make install' --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0cd20d8..83bfb71 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,19 @@ +DESTDIR ?= +IPXEDIR := $(DESTDIR)/usr/share/ipxe + default: - @echo "targets: test clean" + @echo "targets: test clean install" test: sh test-ipxe.sh clean: rm -f *~ */*~ + +install: + install -d $(IPXEDIR)/tests/{domain,network,scripts} + install -m 644 domain/*.xml $(IPXEDIR)/tests/domain + install -m 644 network/*.xml $(IPXEDIR)/tests/network + install -m 644 scripts/*.ipxe $(IPXEDIR)/tests/scripts + install -m 755 *.sh *.py $(IPXEDIR)/tests -- cgit