File: Makefile.am

package info (click to toggle)
rrdcollect 0.2.10-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 708 kB
  • ctags: 186
  • sloc: ansic: 2,330; sh: 1,373; makefile: 121
file content (43 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
man_MANS = rrdcollect.8 rrdcollect.conf.5
CLEANFILES = $(man_MANS)

EXTRA_DIST =	sample-rrdcollect.conf	\
		sample-rrdcollect.init	\
		rrdcollect.conf.man	\
		rrdcollect.man		\
		examples/*.txt		\
		FAQ

#
# Manuals
#

#%.5 %.8: %.man
#	sed -e 's:!rrdcollect_conf!:@sysconfdir@/rrdcollect.conf:;s:!VERSION!:@VERSION@:' $< > $@

rrdcollect.conf.5: rrdcollect.conf.man
	sed -e 's:!rrdcollect_conf!:@sysconfdir@/rrdcollect.conf:;s:!VERSION!:@VERSION@:' rrdcollect.conf.man > $@
rrdcollect.8: rrdcollect.man
	sed -e 's:!rrdcollect_conf!:@sysconfdir@/rrdcollect.conf:;s:!VERSION!:@VERSION@:' rrdcollect.man > $@

#
# Config file
#

RRDCOLLECT_CONF = $(sysconfdir)/rrdcollect.conf

install-data-local: install-rrdcollect.conf

install-rrdcollect.conf: $(srcdir)/sample-rrdcollect.conf
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
	@if test -f $(DESTDIR)$(RRDCOLLECT_CONF); then \
	  if cmp -s $(srcdir)/sample-rrdcollect.conf $(DESTDIR)$(RRDCOLLECT_CONF); then echo ""; \
	     else \
	     echo "WARNING: File \`$(DESTDIR)$(WGETRC)' seems to be already installed."; \
	     echo "         Consider comparing your rrdcollect.conf file with"; \
	     echo "         \`doc/sample-rrdcollect.conf' from this distribution."; \
	     echo; \
	  fi; \
	else \
	  $(INSTALL_DATA) $(srcdir)/sample-rrdcollect.conf $(DESTDIR)$(RRDCOLLECT_CONF); \
	fi