forked from minaguib/libcassandra
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
64 lines (51 loc) · 1.62 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
ACLOCAL_AMFLAGS = -I m4
# includes append to these:
SUFFIXES =
PHONY =
TESTS =
check_PROGRAMS =
CLEANFILES =
bin_PROGRAMS =
noinst_HEADERS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
noinst_PROGRAMS =
include_HEADERS =
nobase_include_HEADERS =
EXTRA_HEADERS =
BUILT_SOURCES=
EXTRA_DIST =
SUBDIRS =
test-docs:
(cd docs && $(MAKE) test-docs)
include libgenthrift/include.am
include libcassandra/include.am
include tests/include.am
TESTS += ${check_PROGRAMS}
fedora:
rm -f ~/rpmbuild/RPMS/x86_64/libcassandra-$(VERSION)*.rpm
rm -f ~/rpmbuild/SRPMS/libcassandra-$(VERSION)*.rpm
cp libcassandra-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
rpmbuild -ba support/libcassandra.spec
cp ~/rpmbuild/RPMS/x86_64/libcassandra-$(VERSION)*.rpm .
cp ~/rpmbuild/SRPMS/libcassandra-$(VERSION)*.rpm .
generic:
rm -f ~/rpmbuild/RPMS/x86_64/libcassandra-$(VERSION)*.rpm
rm -f ~/rpmbuild/SRPMS/libcassandra-$(VERSION)*.rpm
cp libcassandra-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
rpmbuild -ba support/libcassandra.spec
cp ~/rpmbuild/RPMS/x86_64/libcassandra-$(VERSION)*.rpm .
cp ~/rpmbuild/SRPMS/libcassandra-$(VERSION)*.rpm .
rpm: all dist generic fedora
lcov: lcov-clean check
@echo
@echo " ------------------------------------------------------"
@echo "Make sure ./configure was run with '--enable-coverage'"
@echo "------------------------------------------------------"
@echo
cd libcassandra && lcov --capture --directory . --base-directory .. --output-file lcov.out
genhtml -o lcov --function-coverage -t libcassandra libcassandra/lcov.out
lcov-clean: clean
rm -rf lcov */lcov.out
find . -name '*.gcno' | xargs rm -f
find . -name '*.gcda' | xargs rm -f