summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 0a29858b3cf2df05c7d7ef581acf951453a2ba92 (plain)
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
SUBDIRS = \
	src \
	data \
	etc \
	docs \
	m4macros \
	tests

# tools want this on a single line
ACLOCAL_AMFLAGS = -I m4macros

AUTHORS: authors.xml authors.xsl
if HAVE_XSLTPROC
	$(AM_V_GEN) $(XSLTPROC) authors.xsl $< > $(@) || rm -f $(@)
else
	@echo "*** xsltproc is required to regenerate $(@) ***"; exit 1;
endif

validate-authors:
if HAVE_XMLLINT
	@$(XMLLINT) --noout --path $(srcdir) --valid authors.xml || \
          ( echo "*** authors.xml IS INVALID ***"; exit 1; )
endif

all-local: AUTHORS

check-local: validate-authors

dist_doc_DATA = \
	AUTHORS \
	NEWS \
	README

EXTRA_DIST = \
	authors.dtd \
	authors.xml \
	authors.xsl \
	autogen.sh \
	tinyproxy-indent.sh \
	TODO

test: all
	./tests/scripts/run_tests.sh

valgrind-test: all
	./tests/scripts/run_tests_valgrind.sh