diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2006-02-23 22:58:52 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2006-02-23 22:58:52 +0000 |
commit | 30f8e88a24d20ea88a477f24383569e0c036eba1 (patch) | |
tree | c3c0d454168744def24fadf99fb08b7974bb87cd /Makefile | |
parent | d2332f5bd5e7f579ea7248371b8abc22790141a5 (diff) | |
download | lm-sensors-30f8e88a24d20ea88a477f24383569e0c036eba1.tar.gz |
Don't grep autoconf.h on user-space targets.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3259 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -47,18 +47,16 @@ LINUX_HEADERS := $(LINUX)/include I2C_HEADERS := /usr/local/include #I2C_HEADERS := $(LINUX_HEADERS) -# Uncomment the third line on SMP systems if the magic invocation fails. +ifneq ($(MAKECMDGOALS),user) +ifneq ($(MAKECMDGOALS),user_install) +ifneq ($(MAKECMDGOALS),user_uninstall) SMP := $(shell if grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_SMP[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ then echo 1; else echo 0; fi) -#SMP := 0 -#SMP := 1 - -# Uncomment the second or third line if the magic invocation fails. -# We need to know whether CONFIG_MODVERSIONS is defined. MODVER := $(shell if grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_MODVERSIONS[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ then echo 1; else echo 0; fi) -#MODVER := 0 -#MODVER := 1 +endif +endif +endif # Uncomment the second line if you are a developer. This will enable many # additional warnings at compile-time |