-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
70 lines (53 loc) · 2.01 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
# BEGIN: Variables to change.
# additional subdirs which automake should check (default is src and tests)
mysubdirs =
# additional files to add to a distribution
myextradist =
# any additional files to clean up with 'make clean'
mycleanfiles =
# additional files to remove when make maintainer-clean is called
mymaintainercleanfiles = doc deps
# END: Variables to change
# past here, hopefully, there is no need to edit anything
SUBDIRS = src ${mysubdirs} tests
EXTRA_DIST = \
LICENSE \
README.md \
${myextradist}
CLEANFILES = \
${mycleanfiles}
MAINTAINERCLEANFILES = \
Makefile.in \
acinclude.m4 \
aclocal.m4 \
configure \
${mymaintainercleanfiles}
maintainer-clean-local:
rm -f config.guess config.sub install-sh ltmain.sh \
missing mkinstalldirs depcomp INSTALL *.tar.gz \
.*.out
rm -rf autom4te.cache
if test -d doc; then rm -rf doc; fi
.PHONY: doxygen
doxygen:
@doc_out=`doxygen doxygen.config 2>&1`; \
doc_ret=$$? ; \
echo "$$doc_out" ; \
if test "x$$doc_ret" = "x1" ; then \
num=`echo "$$doc_out" | grep "No input read" | wc -l` ; \
if test $${num} -eq 0 ; then \
echo "error : doxygen reported an error" ; \
exit 1 ; \
fi ; \
fi ; \
mkdir -p doc/html ; \
if test ! -f "doc/html/index.html" ; then \
echo "<html><head><title>@PACKAGE_UNDERLINE@: Main Page</title></head><body><h1>No documentation for @PACKAGE_UNDERLINE@ yet, complain to @PACKAGE_BUGREPORT@</h1></body></html>" > doc/html/index.html ; \
fi
.PHONY: memcheck leakcheck
memcheck leakcheck:
cd tests/ && $(MAKE) $@
# .BEGIN is ignored by GNU make so we can use it as a guard
.BEGIN:
@echo "error: GNU Make is required, try aliasing gmake to make"
@exit 1