forked from freebsd/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
58 lines (47 loc) · 1.7 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
AUTOMAKE_OPTIONS= subdir-objects
ACLOCAL_AMFLAGS= -I m4
pkgconfigdir= $(prefix)/libdata/pkgconfig
pkgconfig_DATA= libpkg/pkg.pc
$(pkgconfig_DATA): config.status
DISTCLEANFILES= pkg_repos.h
EXTRA_DIST= docs Kyuafile
dist-hook:
rm -rf `find $(distdir)/external -type d -name .deps`
check-local:
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}
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
STYLEPATTERN= *.[c]
style-fix:
find ${top_srcdir}/src ${top_srcdir}/libpkg -name "${STYLEPATTERN}" | xargs \
uncrustify -c ${top_srcdir}/freebsd.cfg --no-backup
SUBDIRS = compat external libpkg src tests scripts docs