Show
Ignore:
Timestamp:
10/19/10 20:34:34 (4 years ago)
Author:
khali
Message:

Warn the user is either flex or bison is missing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r5760 r5869  
    267267 
    268268# Flex and Bison 
    269 %c: %y 
     269%.c: %.y 
     270        @if ! which $(BISON) 2> /dev/null ; then \ 
     271                echo "Please install $(BISON), then run \"make clean\" and try again" ; \ 
     272                false ; \ 
     273        fi 
    270274        $(BISON) -p sensors_yy -d $< -o $@ 
    271275 
     
    277281 
    278282%.c: %.l 
     283        @if ! which $(FLEX) 2> /dev/null ; then \ 
     284                echo "Please install $(FLEX), then run \"make clean\" and try again" ; \ 
     285                false ; \ 
     286        fi 
    279287        $(FLEX) $(FLEX_FLAGS) $< > $@