Changeset 5676
- Timestamp:
- 03/05/09 16:20:41 (4 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/etc/Module.mk (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/etc/Module.mk
r5664 r5676 17 17 # MA 02110-1301 USA. 18 18 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). 22 ETC_DIR := etc 31 23 32 24 install-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 ; \ 37 28 fi 38 29 $(MKDIR) $(DESTDIR)$(BINDIR) … … 45 36 46 37 user_uninstall :: uninstall-etc 47 48 # No clean rule
