blob: d6051522ad73e3e10e8d79ea04a286ace38aa758 (
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
47
48
|
SUBDIRS = osinfo test data tools docs examples
EXTRA_DIST = \
COPYING.LIB \
libosinfo.spec \
libosinfo.spec.in \
mingw-libosinfo.spec.in \
build-aux/mktempd \
cfg.mk \
GNUmakefile \
maint.mk \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
ACLOCAL_AMFLAGS = -I m4
LCOV = lcov
GENHTML = genhtml
cov: clean-cov
mkdir $(top_builddir)/coverage
$(LCOV) -c -o $(top_builddir)/coverage/libosinfo.info.tmp \
-d $(top_builddir)/osinfo
$(LCOV) -r $(top_builddir)/coverage/libosinfo.info.tmp \
-o $(top_builddir)/coverage/libosinfo.info
rm $(top_builddir)/coverage/libosinfo.info.tmp
$(GENHTML) --show-details -t "libosinfo" -o $(top_builddir)/coverage \
--legend $(top_builddir)/coverage/libosinfo.info
clean-cov:
rm -rf $(top_builddir)/coverage
dist-hook: gen-ChangeLog
# Generate the ChangeLog file (with all entries since the switch to git)
# and insert it into the directory we're about to use to create a tarball.
gen_start_date = 2009-07-04
.PHONY: gen-ChangeLog
gen-ChangeLog:
if test -d .git; then \
$(top_srcdir)/build-aux/gitlog-to-changelog \
--since=$(gen_start_date) > $(distdir)/cl-t; \
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
|