summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2012-03-11 18:58:39 +0100
committermrwastl <mrwastl@users.sourceforge.net>2012-03-11 18:58:39 +0100
commita39f265732d0bc28cb66b58b5ecf1964a130d02b (patch)
treedd75186ba5dab716bad145975dae3f7656cd0eae /Makefile
parent542edc8b0c5f7fb9d0309484e2697c594a049fe7 (diff)
downloadgraphlcd-base-a39f265732d0bc28cb66b58b5ecf1964a130d02b.tar.gz
graphlcd-base-a39f265732d0bc28cb66b58b5ecf1964a130d02b.tar.bz2
add conditional variable assignments; correct bug when testing for directory (both suggested/reported by Keine_Ahnung)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ebfde4b..82f06b4 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ ARCHIVE = $(PROJECT)-$(VERSION)
PACKAGE = $(ARCHIVE)
TMPDIR = /tmp
-UDEVRULESDIR = /etc/udev/rules.d/
-UDEVRULE = "99-graphlcd-base.rules"
+UDEVRULESDIR ?= /etc/udev/rules.d/
+UDEVRULE ?= 99-graphlcd-base.rules
### Targets:
@@ -24,7 +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)
+ test -d "${UDEVRULESDIR}" && install -m 644 -o root -g root "$(UDEVRULE)" "$(UDEVRULESDIR)"
uninstall:
@$(MAKE) -C glcdgraphics uninstall