summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2018-12-19 20:33:16 +0000
committerPaul Bütow <pbuetow@mimecast.com>2018-12-19 20:33:16 +0000
commit31c31c1de8d4bb0b9be832bb34f998ce998dd8e0 (patch)
treed61eafd04d2099f430114dd1cf619105a76fdc5d /Makefile
parent081b6058bc89ae755f71f11f22423db27b1aeb3e (diff)
can compile for various kernel versions using docker now
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ac19433..e3cc8e1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
KERNEL ?= $(shell uname -r)
DESTDIR=/opt/ioriot
all:
- $(MAKE) -C ioriot
$(MAKE) -C systemtap
+ $(MAKE) -C ioriot
install:
- $(MAKE) -C ioriot install
$(MAKE) -C systemtap install
+ $(MAKE) -C ioriot install
uninstall:
test ! -z $(DESTDIR) && test -d $(DESTDIR) && rm -Rfv $(DESTDIR) || exit 0
deinstall: uninstall
@@ -21,7 +21,7 @@ doxygen:
test:
$(MAKE) -C ioriot test
dockerbuild:
- sed s/KERNELVERSION/$(KERNEL)/ Dockerfile.in > Dockerfile
+ sed s/KERNEL/$(KERNEL)/ Dockerfile.in > Dockerfile
docker build . -t ioriot:$(KERNEL)
bash -c 'test ! -d /tmp/docker/opt/ && mkdir -p /tmp/docker/opt/; exit 0'
- docker run -v /tmp/docker/opt:/opt -it ioriot:$(KERNEL) make all install
+ docker run -v /tmp/docker/opt:/opt -v /tmp/docker/downloads:/ioriot/systemtap/downloads -e 'KERNEL=$(KERNEL)' -it ioriot:$(KERNEL) make all install