From a39f265732d0bc28cb66b58b5ecf1964a130d02b Mon Sep 17 00:00:00 2001 From: mrwastl Date: Sun, 11 Mar 2012 18:58:39 +0100 Subject: add conditional variable assignments; correct bug when testing for directory (both suggested/reported by Keine_Ahnung) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3