summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2ece39f..ebfde4b 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,9 @@ ARCHIVE = $(PROJECT)-$(VERSION)
PACKAGE = $(ARCHIVE)
TMPDIR = /tmp
+UDEVRULESDIR = /etc/udev/rules.d/
+UDEVRULE = "99-graphlcd-base.rules"
+
### Targets:
all:
@@ -21,6 +24,7 @@ install:
@$(MAKE) -C glcddrivers install
@$(MAKE) -C glcdskin install
@$(MAKE) -C tools install
+ test -d "${UDEVRULESDIR}" || install -m 644 -o root -g root $(UDEVRULE) $(UDEVRULESDIR)
uninstall:
@$(MAKE) -C glcdgraphics uninstall