forked from acassen/keepalived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
78 lines (62 loc) · 1.56 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
# Makefile
#
# Keepalived OpenSource project.
#
# Copyright (C) 2001-2012 Alexandre Cassen, <[email protected]>
TARFILES = AUTHOR bin ChangeLog configure configure.in 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"
clean:
$(MAKE) -C lib clean
$(MAKE) -C keepalived clean
$(MAKE) -C genhash clean
id: ID
ID:
find . -name "*.[chCH]" -print | xargs mkid -fID
tags: TAGS
TAGS:
find . -name "*.[chCH]" -print | etags -
distclean:
$(MAKE) -C lib distclean
$(MAKE) -C keepalived distclean
$(MAKE) -C genhash distclean
rm -f Makefile
rm -f keepalived.spec
rm -f TAGS ID
mrproper: distclean
rm -f config.*
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/
cp -f doc/VRRP-MIB $(DESTDIR)/usr/share/snmp/mibs/
cp -f doc/KEEPALIVED-MIB $(DESTDIR)/usr/share/snmp/mibs/
endif
tarball: mrproper
mkdir keepalived-@VERSION@
cp -a $(TARFILES) keepalived-@VERSION@
tar --exclude .git -czf $(TARBALL) keepalived-@VERSION@
rm -rf keepalived-@VERSION@
rpm:
rpmbuild -ba keepalived.spec