Changeset 3259

Show
Ignore:
Timestamp:
02/23/06 23:58:52 (7 years ago)
Author:
khali
Message:

Don't grep autoconf.h on user-space targets.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r3096 r3259  
    4848#I2C_HEADERS := $(LINUX_HEADERS) 
    4949 
    50 # Uncomment the third line on SMP systems if the magic invocation fails. 
     50ifneq ($(MAKECMDGOALS),user) 
     51ifneq ($(MAKECMDGOALS),user_install) 
     52ifneq ($(MAKECMDGOALS),user_uninstall) 
    5153SMP := $(shell if grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_SMP[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ 
    5254               then echo 1; else echo 0; fi) 
    53 #SMP := 0 
    54 #SMP := 1 
    55  
    56 # Uncomment the second or third line if the magic invocation fails. 
    57 # We need to know whether CONFIG_MODVERSIONS is defined. 
    5855MODVER := $(shell if grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_MODVERSIONS[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ 
    5956                  then echo 1; else echo 0; fi) 
    60 #MODVER := 0 
    61 #MODVER := 1 
     57endif 
     58endif 
     59endif 
    6260 
    6361# Uncomment the second line if you are a developer. This will enable many