Changeset 2464

Show
Ignore:
Timestamp:
04/21/04 20:44:20 (5 years ago)
Author:
khali
Message:

Do not run depmod on staged installs. Give hints instead.

Patch by Peter Breitenlohner.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/Makefile

    r2449 r2464  
    264264all :: user 
    265265install :: all user_install 
     266ifeq ($(DESTDIR),) 
    266267        @echo "*** The depmod command below may generate errors. We are aware of the" 
    267268        @echo "*** problem and are working on a solution." 
    268 ifeq ($(DESTDIR),) 
    269269        -/sbin/depmod -a 
    270270else 
    271         -/sbin/depmod -a -b $(DESTDIR) 
     271        @echo "*** This is a \`staged' install using \"$(DESTDIR)\" as prefix." 
     272        @echo "***" 
     273        @echo "*** Once the modules have been moved to their final destination" 
     274        @echo "*** you must run the command \"/sbin/depmod -a\"." 
     275        @echo "***" 
     276        @echo "*** Alternatively, if you build a package (e.g. rpm), include the" 
     277        @echo "*** command \"/sbin/depmod -a\" in the post-(un)install procedure." 
     278        @echo "***" 
     279        @echo "*** The depmod command mentioned above may generate errors. We are" 
     280        @echo "*** aware of the problem and are working on a solution." 
    272281endif 
    273282