-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
47 lines (40 loc) · 1.11 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
EXTRA_DIST =
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
SUBDIRS = src tests
# prepare pkg-config file
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
-e 's,@VERSION\@,$(VERSION),g' \
-e 's,@prefix\@,$(prefix),g' \
-e 's,@exec_prefix\@,$(exec_prefix),g' \
-e 's,@libdir\@,$(libdir),g' \
-e 's,@includedir\@,$(includedir),g' \
< $< > $@ || rm $@
%.pc: %.pc.in
$(SED_PROCESS)
.PHONY: check-code-coverage
if CODE_COVERAGE_ENABLED
check-code-coverage:
$(MAKE) -C tests/unit check-code-coverage
else
@echo Run configure with --enable-code-coverage for coverage support.
endif
.PHONY: doc
if BUILD_DOCS
SUBDIRS += doc
doc:
$(MAKE) -C doc html
else
doc:
@echo Run configure with --enable-docs to enable documentation building.
endif
# The current directory must be listed *after* the doc directory to make sure
# 'make distclean' doesn't delete doc/Makefile before 'make distclean -C doc'
# had a chance to run.
SUBDIRS += .
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA = osd.pc
EXTRA_DIST += osd.pc.in $(DX_CONFIG)
CLEANFILES += osd.pc