summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
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