-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.am
54 lines (37 loc) · 1.29 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
ACLOCAL_AMFLAGS= -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = --with-irods
if HAVE_SPHINX
MAYBE_DOC = doc
endif
if HAVE_CHECK
MAYBE_CHECK = tests
endif
SUBDIRS = src . $(MAYBE_CHECK) $(MAYBE_DOC)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = baton.pc
etcdir = $(sysconfdir)
github-release:
$(top_builddir)/scripts/github_release.sh \
-a $(GITHUB_API_TOKEN) -b "Release $(PACKAGE_VERSION)" \
-c master -d -n $(PACKAGE_VERSION) -r $(GITHUB_REPO) \
-t $(PACKAGE_VERSION) -u $(GITHUB_USER) baton-$(PACKAGE_VERSION).tar.gz
if COVERAGE_ENABLED
.PHONY: coverage coverage-report clean-coverage-report check-coverage
COVERAGE_INFO_FILE = $(top_builddir)/coverage.info
COVERAGE_REPORT_DIR = $(top_builddir)/coverage
coverage-report:
@mkdir -p $(COVERAGE_REPORT_DIR)
@touch $(COVERAGE_INFO_FILE)
$(LCOV) --compat-libtool --directory $(top_builddir) \
--no-external --capture --output-file $(COVERAGE_INFO_FILE)
$(GENHTML) -o $(COVERAGE_REPORT_DIR) --config-file lcov.conf \
$(COVERAGE_INFO_FILE)
coverage: coverage-report
clean-coverage-report:
@rm -rf $(COVERAGE_INFO_FILE)
@rm -rf $(COVERAGE_REPORT_DIR)
clean-coverage: clean-coverage-report
-$(LCOV) --zerocounters --directory $(top_builddir)
mostlyclean-local: clean-coverage
check-coverage: clean-coverage check coverage-report
endif # COVERAGE_ENABLED