forked from varnishcache/varnish-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
88 lines (69 loc) · 1.9 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
ACLOCAL_AMFLAGS = -I m4 -I .
SUBDIRS = include lib bin etc doc man
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = varnishapi.pc
m4dir = $(datadir)/aclocal
m4_DATA = varnish.m4 varnish-legacy.m4
CLEANFILES = \
cscope.in.out \
cscope.out \
cscope.po.out \
witness.dot \
witness.svg
EXTRA_DIST = \
README.rst \
README.Packaging \
LICENSE \
autogen.sh \
varnishapi.pc.in \
varnish.m4 \
varnish-legacy.m4 \
vtc.am
AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-developer-warnings \
--enable-debugging-symbols \
--enable-dependency-tracking \
CFLAGS="$(EXTCFLAGS)"
if WITH_UNWIND
AM_DISTCHECK_CONFIGURE_FLAGS += --with-unwind
endif
install-data-local:
$(install_sh) -d -m 0755 $(DESTDIR)$(localstatedir)/varnish
distcleancheck_listfiles = \
find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \
sh '{}' ';'
vtest-clean:
$(am__remove_distdir)
# XXX: This is a hack to ensure we have a built source tree when
# running make dist If we had used non-recursive make we could have
# solved it better, but we don't, so use this at least for now.
LICENSE: all
# XXX: This is a similar hack to ensure we have a built varnishtest
# (and technically any other binary that may be involved in a VTC)
# before we try to run tests anywhere in the tree.
check-recursive: all
cscope:
-rm -f cscope*
find . -name '*.[hcS]' > cscope.files
cscope -b
gcov_digest:
${PYTHON} tools/gcov_digest.py -o _gcov
witness.dot: all
$(MAKE) check AM_VTC_LOG_FLAGS=-pdebug=+witness
$(AM_V_GEN) $(srcdir)/tools/witness.sh witness.dot bin/varnishtest/ \
lib/libvmod_*/
.dot.svg:
if ! HAVE_DOT
@echo ==================================================
@echo You need graphviz installed to generate svg output
@echo ==================================================
@false
else
$(AM_V_GEN) $(DOT) -Tsvg $< >$@
endif
if HAVE_DOT
witness: witness.svg
else
witness: witness.dot
endif
.PHONY: cscope witness.dot