forked from cfengine/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
87 lines (67 loc) · 2.66 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
AUTOMAKE_OPTIONS = foreign
MAKEFLAGS = $(if $(filter-out 0,$(V)),,--no-print-directory --quiet)
LCOV_FLAGS = $(if $(filter-out 0,$(V)),,-q)
SUBDIRS = pub $(NOVA_SUBDIR) $(CONSTELLATION_SUBDIR) src docs examples masterfiles tests $(CFMOD_SUBDIR)
DIST_SUBDIRS = pub src docs examples masterfiles tests
# Set explicitly to avoid picking up {nova,constellation,galaxy}/*.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 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
#
coverage:
find -L $(srcdir) -name '*.gcda' -delete
-$(MAKE) check -k
$(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