-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
58 lines (50 loc) · 1.61 KB
/
Makefile
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
include MCONFIG_ALL
CWD=$(shell pwd)
default:: all
all:
cd tcm-py ; python setup.py build
cd lio-py ; python setup.py build
-if test -d tools; then make -C tools; fi;
ifeq ($(SNMP_FEATURE), 1)
-if test -d mib-modules; then make -C mib-modules; fi;
endif
user_rpms:
-if test -d tools; then make -C tools; fi;
./autoconfig make_target_user_rpm
ifeq ($(SNMP_FEATURE), 1)
-if test -d mib-modules; then make -C mib-modules; fi;
./autoconfig make_mibs_rpm
endif
conf_install:
if [ ! -d $(DESTDIR)/etc/target ]; then \
mkdir -p $(DESTDIR)/etc/target; \
fi
if [ ! -f $(DESTDIR)/etc/target/tcm_start.sh ]; then \
install -m 0755 conf/tcm_start.default $(DESTDIR)/etc/target/tcm_start.sh; \
fi
if [ ! -f $(DESTDIR)/etc/target/lio_start.sh ]; then \
install -m 0755 conf/lio_start.default $(DESTDIR)/etc/target/lio_start.sh; \
fi \
initd_install:
if [ ! -d $(DESTDIR)/etc/init.d ]; then \
mkdir -p $(DESTDIR)/etc/init.d; \
fi
install -m 0755 scripts/rc.target $(DESTDIR)/etc/init.d/target
install: all initd_install conf_install
cd tcm-py ; python setup.py install ; sh install.sh
cd lio-py ; python setup.py install ; sh install.sh
-if test -d tools; then make -C tools install; fi
ifeq ($(SNMP_FEATURE), 1)
-if test -d mib-modules; then make -C mib-modules install; fi
endif
deinstall:
cd tcm-py ; sh uninstall.sh
cd lio-py ; sh uninstall.sh
clean:
cd tcm-py ; python setup.py clean ; rm -rf build
cd lio-py ; python setup.py clean ; rm -rf build
rm -rf build
-if test -d tools; then make -C tools clean; fi;
ifeq ($(SNMP_FEATURE), 1)
-if test -d mib-modules; then make -C mib-modules clean; fi;
endif