# Network UPS Tools: conf

# this gets used once configure expands sysconfdir below...
prefix		= /usr
exec_prefix	= /usr

CONFPATH	= $(DESTDIR)/etc

INSTALLCMD  = /usr/bin/install -c

SECFILES = upsmon.conf upsd.conf upsd.users
PUBFILES = upssched.conf ups.conf
CGIPUB   = hosts.conf upsset.conf upsstats.html upsstats-single.html

all:
clean:

install:
	@for f in $(SECFILES) ; do \
		$(INSTALLCMD) -m 0600 $$f $(CONFPATH)/$$f.sample; \
	done

	@for f in $(PUBFILES) ; do \
		$(INSTALLCMD) -m 0644 $$f $(CONFPATH)/$$f.sample; \
	done

install-cgi-conf:
	@for f in $(CGIPUB) ; do \
		$(INSTALLCMD) -m 0644 $$f $(CONFPATH)/$$f.sample; \
	done
