-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
49 lines (38 loc) · 1.01 KB
/
Makefile.in
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
CC=@CC@
CFLAGS=@CFLAGS@
LIBSOURCE=include/lib.h lib/lib.c
TESTSOURCE=test/test.c
CGISOURCE=cgis/*.c
.PHONY: lib test cgis
lib: $(LIBSOURCE)
cd lib/ && $(MAKE) $@
test: $(LIBSOURCE) $(TESTSOURCE)
cd test/ && $(MAKE) $@
memtest: $(LIBSOURCE) $(TESTSOURCE)
cd test/ && $(MAKE) $@
cgis: $(LIBSOURCE) $(CGISOURCE)
cd cgis/ && $(MAKE) $@
install-cgis:
coverage: test
@if which lcov &>/dev/null; then \
lcov -c -d . -o test/coverage.info-file; \
genhtml test/coverage.info-file -o test/coverage/; \
echo "Your coverage report is in test/coverage/index.html"; \
else \
echo "You must install lcov first!"; \
fi
report: lib test memtest coverage
@if which gcovr &>/dev/null; then \
gcovr --exclude="test/test.c" -r . ; \
else \
echo "You must install gcovr first!"; \
fi
clean:
rm -f lib/lib.o test/test cgis/*.cgi
distclean: clean
rm -rf autom4te.cache
rm -f Makefile */Makefile
rm -f autoscan.log config.log config.status
rm -rf test/coverage test/coverage.info-file
rm -f */*.gcda */*.gcno
autoconf