-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
111 lines (84 loc) · 2.72 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
## Process this file with automake to produce Makefile.in
all:
@echo "*"
@echo "* This module has been discontinued and merged into buzztrax!"
@echo "*"
@exit 1
SUBDIRS =
# see fake subdir rules
FAKE_SUBDIRS = \
docs/reference
DIST_SUBDIRS = $(SUBDIRS) $(FAKE_SUBDIRS)
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
EXTRA_DIST = \
libgstbuzztrax.pc.in \
README.md TODO
# BUILT_SOURCES is for generated source
BUILT_SOURCES = builddirs
# CLEANFILES is for files generated by make
CLEANFILES = $(pkgconfig_DATA)
noinst_HEADERS =
include $(top_srcdir)/Makefile.lib.am
include $(top_srcdir)/Makefile.src.am
include $(top_srcdir)/Makefile.tests.am
#-- orc
ORC_SOURCE = src/bml/gstbmlorc
include $(top_srcdir)/orc.mak
#-- pkg config
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgstbuzztrax.pc
#-- fake subdir rules
docs: docs-reference
docs-reference: libgstbuzztrax.la libgstaudiodelay.la libgstsimsyn.la
@$(MAKE) -C docs/reference
all-local: docs
check-local:
@for dir in $(FAKE_SUBDIRS); do $(MAKE) -C $$dir check; done
clean-local:
@for dir in $(FAKE_SUBDIRS); do \
if test -f $$dir/Makefile; then \
$(MAKE) -C $$dir clean; \
fi; \
done
install-data-local:
@for dir in $(FAKE_SUBDIRS); do $(MAKE) -C $$dir install-data; done
uninstall-local:
@for dir in $(FAKE_SUBDIRS); do $(MAKE) -C $$dir uninstall; done
builddirs:
$(AM_V_at)$(MKDIR_P) src/bml/
AUTHORS::
$(AM_V_GEN)if test -d "$(srcdir)/.git"; \
then \
( cd "$(top_srcdir)" && \
git log --no-merges --pretty=format:"%an <%ae>" . | \
sed -e 's/sourceforge.net/sf.net/' \
-e 's/\(Joseph Orbegoso Pea <[email protected]>\|trusktr <[email protected]>\)/Joe Pea <[email protected]>/' | \
sort | uniq -c | sed -e 's/^\ *//' | sort -rn | cut -d' ' -f2- \
) > [email protected] && \
cmp -s $@ [email protected]; \
if test "$(?)" = "0"; then rm -f [email protected]; touch $@; else mv -f [email protected] $@; fi \
|| ( rm -f [email protected] ; \
echo Failed to generate $@ >&2 ); \
fi
.PHONY: \
builddirs \
docs docs-reference \
coverage valgrind
# make coverage -- run all checks and generate html coverage report (only availble when built using --enable-coverage)
if USE_LCOV
coverage::
$(MKDIR_P) ./coverage
lcov --compat-libtool --directory . --zerocounters
-$(MAKE) check
lcov --compat-libtool --directory ./src --capture --output-file ./coverage/$(PACKAGE)_tmp.info
lcov --compat-libtool --extract ./coverage/$(PACKAGE)_tmp.info "$(PWD)/src*" -o ./coverage/$(PACKAGE).info
$(RM) ./coverage/$(PACKAGE)_tmp.info
genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
endif
# make valgrind -- run all checks under valgrind
if USE_VALGRIND
valgrind::
$(MAKE) -C tests valgrind
endif
include $(top_srcdir)/common.mak