add on/off commands
[ktest-util.git] / Makefile
blob4dee45cdf2c7920039c3f9ecb4e985a1bed47312
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-kernel-install vzt-pxe-boot vzt-show-list \
7 vzt-pductl vzt-set-kernel vzt-vzlist2quilt
8 CONFIGS = vzt-pductl.cfg vzt-pxe-boot.cfg kernel-install.cfg.example
10 check:
11 @if [ ! -d "$(SNMP_MIBS_DIR)" ]; then \
12 echo "Error: seems net-snmp or net-snmp-utils not intalled"; \
13 exit 1 ; \
14 fi \
16 installbins: check
17 for file in $(SCRIPTS); do \
18 install -m 755 $$file $(SBINDIR)/$$file; \
19 done
20 installconf: check
21 mkdir -p $(CONFDIR)
22 for file in $(CONFIGS); do \
23 install -m 755 .$(CONFDIR)/$$file $(CONFDIR)/$$file; \
24 done
26 installmibs: check
27 cp .$(MIBSDIR)/* $(MIBSDIR)/
29 install: installmibs installbins installconf
31 .PHONY: all check install