From c88863f56042f31b52b9aee45f87a77a5f287b61 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 30 May 2014 11:23:06 -0400 Subject: [PATCH] simplify conditional udev logic --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 92f6051..0cbaddd 100644 --- a/Makefile +++ b/Makefile @@ -8,17 +8,17 @@ else endif PKG_CONFIG ?= pkg-config -ifeq "$(UDEV)" "yes" - ALL_TARGETS=compress udev-hwdb - INSTALL_TARGETS=install-base install-hwdb -else - ALL_TARGETS=compress - INSTALL_TARGETS=install-base -endif +UDEV ?= no + +ALL_TARGETS-yes = compress +ALL_TARGETS-$(UDEV) += udev-hwdb + +INSTALL_TARGETS-yes = install-base +INSTALL_TARGETS-$(UDEV) += install-hwdb -all: $(ALL_TARGETS) +all: $(ALL_TARGETS-yes) -install: $(INSTALL_TARGETS) +install: $(INSTALL_TARGETS-yes) fetch: $(Q)curl -z pci.ids -o pci.ids -R http://pci-ids.ucw.cz/v2.2/pci.ids -- 2.25.1