aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Makefile
blob: 13e420836b45a886b950271c1472be033adb013e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
INSTALL		:= install
PYTHON		:= python3
RM		:= rm

PREFIX		:= /usr/local
DESTDIR		:=

all:
	@true

clean:
	@true

install:
	$(PYTHON) setup_driver.py install --prefix "$(DESTDIR)$(PREFIX)"
	$(RM) -rf build
	$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
	$(INSTALL) linuxcnchal_cnccontrol.py $(DESTDIR)$(PREFIX)/bin/
	$(INSTALL) linuxcnchal_cnccontrol $(DESTDIR)$(PREFIX)/bin/
	$(INSTALL) -d $(DESTDIR)/etc/sudoers.d
	$(INSTALL) -g 0 -o 0 -m 0440 cnccontrol.sudo $(DESTDIR)/etc/sudoers.d/zzz-cnccontrol

.PHONY: all install clean
bues.ch cgit interface