forked from cfengine/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
95 lines (71 loc) · 3.05 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
AUTOMAKE_OPTIONS = foreign
MAKEFLAGS = $(if $(filter-out 0,$(V)),,--no-print-directory --quiet)
LCOV_FLAGS = $(if $(filter-out 0,$(V)),,-q)
SUBDIRS = pub libutils $(NOVA_LIB_SUBDIRS) libpromises $(NOVA_BIN_SUBDIRS) cf-agent cf-execd cf-gendoc cf-key cf-monitord cf-promises cf-report cf-runagent cf-serverd ext docs examples masterfiles tests $(ENTERPRISE_API_SUBDIR) $(CFMOD_SUBDIR) $(NOVA_DOC_SUBDIR) $(NOVA_SUBDIR)
DIST_SUBDIRS = pub libutils libpromises cf-agent cf-execd cf-gendoc cf-key cf-monitord cf-promises cf-report cf-runagent cf-serverd ext docs examples masterfiles tests
# Set explicitly to avoid picking up {nova}/*.m4
DIST_COMMON = README Makefile.am Makefile.in configure AUTHORS aclocal.m4 \
ChangeLog INSTALL config.guess config.sub depcomp install-sh \
ltmain.sh missing ylwrap m4/acinclude.m4 m4/libtool.m4 m4/ltoptions.m4 \
m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 m4/cf3_with_library.m4 \
m4/snprintf.m4 m4/old-autoconf.m4 m4/adl_recursive_eval.m4 configure.ac \
autogen.sh compile
EXTRA_DIST = ChangeLog INSTALL README LICENSE
docsdir = $(projdocdir)
docs_DATA = README ChangeLog
#
# Some basic clean ups
#
MOSTLYCLEANFILES = *~
#
# Get everything removed down to where rebuilding requires:
# "make; make install"
#
CLEANFILES = cfengine-lcov-base.info cfengine-lcov.info
#
# Get everything removed down to where rebuilding requires:
# "configure; make; make install"
#
DISTCLEANFILES =
#
# Get everything removed down to where rebuilding requires:
# "aclocal; autoconf; autoheader; automake --add-missing"
# "configure; make; make install"
#
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.sub \
configure install-sh missing mkinstalldirs depcomp ylwrap \
ltmain.sh mdate-sh
#
# Pass proper flags to aclocal to pick up Libtool macros
#
ACLOCAL_AMFLAGS = -I m4
install-data-local:
$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/inputs
$(MKDIR_P) $(DESTDIR)$(workdir)/masterfiles
$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/modules
$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/outputs
$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/ppkeys
#
# Documentation
#
html:
$(MAKE) -C docs $(AM_MAKEFLAGS) html
pdf:
$(MAKE) -C docs $(AM_MAKEFLAGS) pdf
#
# Code coverage
#
clean-coverage:
find -L $(srcdir) -name '*.gcda' -delete
run-coverage:
-$(MAKE) check -k
collect-coverage:
$(LCOV) $(LCOV_FLAGS) --capture --initial --directory . --output-file cfengine-lcov-base.info
$(LCOV) $(LCOV_FLAGS) --capture --directory . --output-file cfengine-lcov.info --test-name CFENGINE --no-checksum --compat-libtool
$(LCOV) $(LCOV_FLAGS) -a cfengine-lcov-base.info -a cfengine-lcov.info --output-file cfengine-lcov.info
$(LCOV) $(LCOV_FLAGS) --remove cfengine-lcov.info '/usr/include/*' --output-file cfengine-lcov.info
LANG=C $(LCOV_GENHTML) $(LCOV_FLAGS) --prefix . --output-directory coverage-html --title "CFEngine Code Coverage" --legend --show-details cfengine-lcov.info
@echo
@echo " Code coverage information: file://"`pwd`"/coverage-html/index.html"
@echo
coverage: clean-coverage run-coverage collect-coverage