Makefile 373 B

123456789101112
  1. all: install
  2. install:
  3. install -d /usr/local/sbin/
  4. install -d /etc/systemd/system/
  5. install -m 700 lenovo_fix.py /usr/local/sbin/
  6. install -m 644 systemd/lenovo_fix.service /etc/systemd/system/
  7. @if test -f /etc/lenovo_fix.conf; then \
  8. echo "/etc/lenovo_fix.conf already exists; overwrite manually"; \
  9. else \
  10. install -m 644 etc/lenovo_fix.conf /etc/; \
  11. fi