[PATCH 08/16] .
[ktest-util.git] / Makefile
blob72049798eeaf41634b77ffff2a04762b951f9d3f
1 SNMP_MIBS_DIR = /usr/share/snmp/mibs
2 SBINDIR = /usr/bin
3 CONFDIR = /etc/vzt
4 MIBSDIR = /usr/share/snmp/mibs
5 ###################################
6 SCRIPTS = vzt-pductl vzt-kernel-install vzt-pxe-boot
7 CONFIGS = vzt-pductl.cfg vzt-pxe-boot.cfg kernel-install.cfg.example
9 check:
10 @if [ ! -d "$(SNMP_MIBS_DIR)" ]; then \
11 echo "Error: seems net-snmp or net-snmp-utils not intalled"; \
12 exit 1 ; \
13 fi \
15 installbins: check
16 for file in $(SCRIPTS); do \
17 install -m 755 $$file $(SBINDIR)/$$file; \
18 done
19 installconf: check
20 mkdir -p $(CONFDIR)
21 for file in $(CONFIGS); do \
22 install -m 755 .$(CONFDIR)/$$file $(CONFDIR)/$$file; \
23 done
25 installmibs: check
26 cp .$(MIBSDIR)/* $(MIBSDIR)/
28 install: installmibs installbins installconf
30 .PHONY: all check install