forked from acassen/keepalived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
109 lines (86 loc) · 2.29 KB
/
Makefile.in
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Makefile
#
# Keepalived OpenSource project.
#
# Copyright (C) 2001-2012 Alexandre Cassen, <[email protected]>
TARFILES = AUTHOR bin ChangeLog configure configure.ac CONTRIBUTORS COPYING \
doc genhash INSTALL install-sh keepalived keepalived.spec.in lib Makefile.in \
README TODO VERSION
TARBALL = keepalived-@[email protected]
all:
$(MAKE) -C lib || exit 1;
$(MAKE) -C keepalived
$(MAKE) -C genhash
@echo ""
@echo "Make complete"
debug:
$(MAKE) -C lib || exit 1;
$(MAKE) -C keepalived debug
@echo ""
@echo "Make complete"
profile:
$(MAKE) -C lib || exit 1;
$(MAKE) -C keepalived profile
@echo ""
@echo "Make complete"
id: ID
ID:
find . -name "*.[chCH]" -print | xargs mkid -fID
tags: TAGS
TAGS:
find . -name "*.[chCH]" -print | etags -
clean_sub:
$(MAKE) -C lib clean
$(MAKE) -C keepalived clean
$(MAKE) -C genhash clean
clean_me:
rm -f *.[ao] *~ *.orig *.rej core
clean: clean_sub clean_me
distclean_sub:
$(MAKE) -C lib distclean
$(MAKE) -C keepalived distclean
$(MAKE) -C genhash distclean
distclean_me: clean_me
rm -f Makefile
rm -f keepalived.spec
rm -f TAGS ID
distclean: distclean_me distclean_sub
tarclean_sub:
$(MAKE) -C lib tarclean
$(MAKE) -C keepalived tarclean
$(MAKE) -C genhash tarclean
tarclean_me: distclean_me
rm -f config.*
tarclean: tarclean_me tarclean_sub
mrproper: tarclean_me
$(MAKE) -C lib mrproper
$(MAKE) -C keepalived mrproper
$(MAKE) -C genhash mrproper
uninstall:
$(MAKE) -C keepalived uninstall
$(MAKE) -C genhash uninstall
install:
$(MAKE) -C keepalived install
$(MAKE) -C genhash install
ifeq (@SNMP_SUPPORT@, _WITH_SNMP_)
mkdir -p $(DESTDIR)/usr/share/snmp/mibs/
ifeq (@SNMP_RFCV2_SUPPORT@, _WITH_SNMP_RFCV2_)
cp -f doc/VRRP-MIB $(DESTDIR)/usr/share/snmp/mibs/
endif
ifeq (@SNMP_RFCV3_SUPPORT@, _WITH_SNMP_RFCV3_)
cp -f doc/VRRPv3-MIB $(DESTDIR)/usr/share/snmp/mibs/
endif
ifeq (@SNMP_KEEPALIVED_SUPPORT@, _WITH_SNMP_KEEPALIVED_)
cp -f doc/KEEPALIVED-MIB $(DESTDIR)/usr/share/snmp/mibs/
else ifeq (@SNMP_CHECKER_SUPPORT@, _WITH_SNMP_CHECKER_)
cp -f doc/KEEPALIVED-MIB $(DESTDIR)/usr/share/snmp/mibs/
endif
endif
tarball: tarclean
make -C lib git-commit.h
mkdir keepalived-@VERSION@
cp -a $(TARFILES) keepalived-@VERSION@
tar --exclude .git -czf $(TARBALL) keepalived-@VERSION@
rm -rf keepalived-@VERSION@
rpm:
rpmbuild -ba keepalived.spec