forked from freebsd/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.autosetup
43 lines (38 loc) · 1.35 KB
/
Makefile.autosetup
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
include @builddir@/mk/defs.mk
DIRS= external compat libpkg/repo libpkg src docs scripts @testsdir@
include $(MK)/dir.mk
check: all
@if testsdir == "tests"
if [ "$(HTML)" != "" ]; then \
args="-r $(top_builddir)/res.db" ; \
fi ; \
kyua --config=none test $$args \
--kyuafile='$(top_builddir)/Kyuafile' \
--build-root='$(top_builddir)' || FAILED=1 ; \
if [ "$(HTML)" != "" ]; then \
kyua report-html --force $$args --output=$(HTML) ; \
rm -f $(top_builddir)/res.db ; \
fi ; \
exit $${FAILED}
@endif
COCCI_ARGS= -I ${top_srcdir} \
-I /usr/include \
-I /usr/local/include \
-I ${top_srcdir}/compat \
-I ${top_srcdir}/libpkg \
-I ${top_srcdir}/src \
-I ${top_srcdir}/external/expat/lib \
-I ${top_srcdir}/external/libyaml/include \
-I ${top_srcdir}/external/libucl/include \
-I ${top_srcdir}/external/uthash \
-I ${top_srcdir}/external/sqlite \
-I ${top_srcdir}/external/libelf
1cocci:
spatch ${COCCI_ARGS} -in_place -sp_file $(top_srcdir)/tests/cocci/${COCCITEST} -dir ${top_srcdir}/libpkg ; \
spatch ${COCCI_ARGS} -in_place -sp_file $(top_srcdir)/tests/cocci/${COCCITEST} -dir ${top_srcdir}/src ;
cocci:
for c in ${top_srcdir}/tests/cocci/*.cocci ; do \
echo "Passing $$c" ; \
spatch ${COCCI_ARGS} -in_place -sp_file $$c -dir ${top_srcdir}/libpkg ; \
spatch ${COCCI_ARGS} -in_place -sp_file $$c -dir ${top_srcdir}/src ; \
done