-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
39 lines (30 loc) · 889 Bytes
/
Makefile.am
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
bin_SCRIPTS = subagent-shell
basedir = $(sysconfdir)/snmp/subagent-shell
base_DATA = *.xml subagent-shell-base.functions
mibsdir = $(basedir)/mibs
mibs_DATA = mibs/*
dist_mibs_DATA = mibs/*
man8ddir = $(mandir)/man8
man8d_DATA = subagent-shell.8
dist_man8d_DATA = subagent-shell.8
dist_base_DATA = subagent-shell-conf.xml subagent-shell-functions-conf.xml subagent-shell-base.functions
EXTRA_DIST = subagent-shell.init.rhel subagent-shell.service subagent-shell.options
install-data-hook:
$(mkdir_p) $(DESTDIR)$(basedir)/conf.d
check:
perl -c subagent-shell-base.functions
perl -c subagent-shell
test:
if test -z "$(SNMPD)" ; then \
echo "snmpd is not found"; \
exit 1; \
fi
if test -z "$(SNMPWALK)" ; then \
echo "snmpwalk is not found"; \
exit 1; \
fi
make all
make check
/bin/sh subagent-shell-test
clean:
rm -rf stest subagent-shell subagent-shell-test