summaryrefslogtreecommitdiff
path: root/scripts/Makefile.am
blob: 9a89e3b9a3bfcdf677c57aa6af380f9b3ca12e39 (plain)
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
60
#!/bin/sh
# Makefile to build/install script files
#
MKDIR = sh ../mkinstalldirs 
INSTALL_SH = sh ../install-sh -c
INSTALL_DATA_SH = ${INSTALL_SH} -m 644
INSTALL_SCRIPT_SH =  ${INSTALL_SH} -m 755
prefix = /usr

datadir = ${prefix}/share
mandir = ${prefix}/share/man
docdir = ${prefix}/share/doc/ipmiutil-${version}
sbindir = ${prefix}/sbin
etcdir = /etc
datato = ${DESTDIR}${datadir}/ipmiutil
cronto = ${DESTDIR}${etcdir}/cron.daily
sbinto = ${DESTDIR}${sbindir}
varto  = ${DESTDIR}/var/lib/ipmiutil
initto = ${DESTDIR}@INIT_DIR@
sysdto = ${DESTDIR}@SYSTEMD_DIR@
sysvinit = ${datato}
sbinfls = ialarms ihealth ifru igetevent ireset icmd isol ilan isensor isel iserial iwdt iconfig ipicmg ifirewall ifwum ihpm iuser

all:	

clean:

clobber:
	
distclean:
	
check:

install:
	$(MKDIR) ${datato}
	$(MKDIR) ${sbinto}
	$(MKDIR) ${initto}
	$(MKDIR) ${varto}
	$(MKDIR) ${sysdto}
	${INSTALL_SCRIPT_SH} ipmi_if.sh   ${datato}
	${INSTALL_SCRIPT_SH} evt.sh       ${datato}
	if [ -f /etc/debian_version ]; then \
	   sysvinit=${initto}; fi
	${INSTALL_SCRIPT_SH} ipmiutil_wdt ${sysvinit}/ipmiutil_wdt
	${INSTALL_SCRIPT_SH} ipmiutil_asy ${sysvinit}/ipmiutil_asy
	${INSTALL_SCRIPT_SH} ipmiutil_evt ${sysvinit}/ipmiutil_evt
	${INSTALL_SCRIPT_SH} ipmi_port.sh ${sysvinit}/ipmi_port
	${INSTALL_SCRIPT_SH} ipmi_info    ${sysvinit}/ipmi_info
	${INSTALL_SCRIPT_SH} checksel     ${datato}
	${INSTALL_DATA_SH} ipmiutil_wdt.service ${sysdto}
	${INSTALL_DATA_SH} ipmiutil_asy.service ${sysdto}
	${INSTALL_DATA_SH} ipmiutil_evt.service ${sysdto}
	${INSTALL_DATA_SH} ipmi_port.service    ${sysdto}
	${INSTALL_SCRIPT_SH} ipmiutil.env.template    ${datato}
	${INSTALL_SCRIPT_SH} ipmiutil.pre     ${datato}
	${INSTALL_SCRIPT_SH} ipmiutil.setup   ${datato}
	${INSTALL_SCRIPT_SH} ipmi.init.basic  ${datato}
	for f in ${sbinfls}; do \
	    ${INSTALL_SCRIPT_SH} $$f ${sbinto}; done