Changeset 5676

Show
Ignore:
Timestamp:
03/05/09 16:20:41 (4 years ago)
Author:
khali
Message:

Don't use variables when they hurt readability more than they help.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/etc/Module.mk

    r5664 r5676  
    1717#  MA 02110-1301 USA. 
    1818 
    19 # Note that MODULE_DIR (the directory in which this file resides) is a 
    20 # 'simply expanded variable'. That means that its value is substituted 
    21 # verbatim in the rules, until it is redefined.  
    22 MODULE_DIR := etc 
    23 ETC_DIR := $(MODULE_DIR) 
    24  
    25 ETCTARGET := $(MODULE_DIR)/sensors.conf.default 
    26 ETCINSTALL := $(ETCDIR)/sensors3.conf 
    27 ETCINSTALL_DIR_D := $(ETCDIR)/sensors.d 
    28  
    29  
    30 # No all rule 
     19# Note: Don't confuse ETC_DIR (the directory in which this file resides) 
     20# with ETCDIR (the system directory in which configuration files will be 
     21# installed; typically /etc). 
     22ETC_DIR := etc 
    3123 
    3224install-etc: 
    33         $(MKDIR) $(DESTDIR)$(ETCDIR) 
    34         $(MKDIR) $(DESTDIR)$(ETCINSTALL_DIR_D) 
    35         if [ ! -e $(DESTDIR)$(ETCINSTALL) ] ; then \ 
    36           $(INSTALL) -m 644 $(ETCTARGET) $(DESTDIR)$(ETCINSTALL); \ 
     25        $(MKDIR) $(DESTDIR)$(ETCDIR) $(DESTDIR)$(ETCDIR)/sensors.d 
     26        if [ ! -e $(DESTDIR)$(ETCDIR)/sensors3.conf ] ; then \ 
     27          $(INSTALL) -m 644 $(ETC_DIR)/sensors.conf.default $(DESTDIR)$(ETCDIR)/sensors3.conf ; \ 
    3728        fi 
    3829        $(MKDIR) $(DESTDIR)$(BINDIR) 
     
    4536 
    4637user_uninstall :: uninstall-etc 
    47  
    48 # No clean rule