Makefile 520 B

123456789101112131415161718192021222324
  1. INSTALL := install
  2. PYTHON := python3
  3. RM := rm
  4. PREFIX := /usr/local
  5. DESTDIR :=
  6. all:
  7. @true
  8. clean:
  9. @true
  10. install:
  11. $(PYTHON) setup_driver.py install --prefix "$(DESTDIR)$(PREFIX)"
  12. $(RM) -rf build
  13. $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
  14. $(INSTALL) linuxcnchal_cnccontrol.py $(DESTDIR)$(PREFIX)/bin/
  15. $(INSTALL) linuxcnchal_cnccontrol $(DESTDIR)$(PREFIX)/bin/
  16. $(INSTALL) -d $(DESTDIR)/etc/sudoers.d
  17. $(INSTALL) -g 0 -o 0 -m 0440 cnccontrol.sudo $(DESTDIR)/etc/sudoers.d/zzz-cnccontrol
  18. .PHONY: all install clean