forked from acassen/keepalived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
74 lines (51 loc) · 1.52 KB
/
Makefile.am
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
# Makefile.am
#
# Keepalived OpenSource project.
#
# Copyright (C) 2001-2016 Alexandre Cassen, <[email protected]>
export DEBUG_CFLAGS
export DEBUG_CPPFLAGS
export DEBUG_LDFLAGS
edit = echo " EDIT $@"; \
sed -e "/^\[\!\[/d"
SUBDIRS = lib keepalived doc
if BUILD_GENHASH
SUBDIRS += genhash
endif
SUBDIRS += bin_install
EXTRA_DIST = AUTHOR CONTRIBUTORS snap README.md
doc_DATA = README
MOSTLYCLEANFILES = README
MAINTAINERCLEANFILES = @MAINTAINERCLEANFILES@
README: $(srcdir)/README.md
@$(edit) '$(srcdir)/[email protected]' >$@
distclean-local:
@rm -f aclocal.m4 ar-lib compile depcomp missing keepalived-$(VERSION).tar.gz config.log config.status
@rm -rf autom4te.cache
dist-hook:
@rm -f $(distdir)/README
.PHONY: docker
docker:
docker build -t keepalived .
# clean all files that are generated by automake/autoconf etc
autoclean:
@$(MAKE) distclean
@rm -f configure `find . -name Makefile.in` lib/config.h.in lib/git-commit.h
clean-local: clean-local-snap
# clean files that are generated by snapcraft
.PHONY: clean-local-snap
clean-local-snap:
-rm -rf parts/ prime/ stage/ keepalived_*.snap
# Added targets to maintain compatibility with keepalived releases 1.2.22 and earlier
.PHONY: tarball rpm debug profile mrproper
tarball: dist
rpm:
rpmbuild -ba --build-in-place keepalived.spec
debug:
@$(MAKE) DEBUG_LDFLAGS=-ggdb
profile:
@$(MAKE) DEBUG_CFLAGS=-pg
mrproper:
@echo Please use `make distclean`
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)