-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·27 lines (21 loc) · 818 Bytes
/
Makefile
File metadata and controls
executable file
·27 lines (21 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
UDEVRULEDIR := /etc/udev/rules.d
all: build
.PHONY:installudevrules
installudevrules:
@echo Installing Kinect and Vrui devices permission udev rule in $(UDEVRULEDIR)
@install -m u=rw,go=r 69-Kinect.rules $(UDEVRULEDIR)
@install -m u=rw,go=r 69-Vrui-devices.rules $(UDEVRULEDIR)/69-Vrui-devices.rules
.PHONY:build
build:
@docker-compose build
.PHONY:nvidia-dockerfile
nvidia-dockerfile:
@cat Dockerfile > Dockerfile.nvidia
@sed -i "s/FROM ubuntu:18.04/FROM nvcr.io\/nvidia\/driver:525.60.13-ubuntu18.04/g" Dockerfile.nvidia
@echo created Dockerfile.nvidia in $(PWD)
.PHONY:nvidia-version
nvidia-version: export NVIDIA_VERSION = $(head -n1 </proc/driver/nvidia/version | awk '{ print $8 }')
.PHONY:nvidia
nvidia: nvidia-version
@docker-compose build sarndbox-nvidia
@docker-compose create sarndbox-nvidia