File: Makefile.am

package info (click to toggle)
monitoring-plugins-check-logfiles 4.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,024 kB
  • sloc: perl: 19,496; sh: 3,422; makefile: 72; awk: 41
file content (59 lines) | stat: -rw-r--r-- 1,475 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
libexec_SCRIPTS=check_logfiles
EXTRA_MODULES=\
  Nagios/Tivoli/Config/Logfile.pm \
  Nagios/CheckLogfiles.pm \
  Nagios/CheckLogfiles/Search/Errpt.pm \
  Nagios/CheckLogfiles/Search/Ipmitool.pm \
  Nagios/CheckLogfiles/Search/Oraclealertlog.pm \
  Nagios/CheckLogfiles/Search/Esxdiag.pm \
  Nagios/CheckLogfiles/Search/Executable.pm \
  Nagios/CheckLogfiles/Search/Dummy.pm \
  Nagios/CheckLogfiles/Search/Journald.pm \
  Nagios/CheckLogfiles/Search/Dmesg.pm

TEST_MODULES=\
  Nagios/CheckLogfiles/Test.pm

WIN_MODULES=\
  Nagios/CheckLogfiles/Search/Dumpel.pm \
  Nagios/CheckLogfiles/Search/Eventlog.pm \
  Nagios/CheckLogfiles/Search/Psloglist.pm \
  Nagios/CheckLogfiles/Search/Wevtutil.pm


SED=/bin/sed
GREP=/bin/grep
CAT=/bin/cat
ECHO=/bin/echo

SUFFIXES = .pl .pm .sh

VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t

EXTRA_DIST=$(libexec_SCRIPTS).pl $(EXTRA_MODULES) $(TEST_MODULES) $(WIN_MODULES)

CLEANFILES=$(libexec_SCRIPTS)

AM_INSTALL_PROGRAM_FLAGS=@INSTALL_OPTS@

.pm :
	$(AWK) -f ./subst $< > $@
	chmod +x $@

.pl :
	$(AWK) -f ./subst $< > $@
	chmod +x $@

.sh :
	$(AWK) -f ./subst $< > $@
	chmod +x $@

$(libexec_SCRIPTS) : $(EXTRA_DIST)
	$(ECHO) "#! #PERL# " | $(AWK) -f ./subst > $@
	$(ECHO) "# nagios: -epn" >> $@
	$(ECHO) >> $@
	for m in ${EXTRA_MODULES}; do \
		$(SED) -e 's/^1;//g' < $$m | $(SED) -e '/^__END__/,$$d' | $(AWK) -f ./subst >> $@; \
	done
	$(CAT) check_logfiles.pl | $(AWK) -f ./subst >> $@
	chmod +x $@