Revert "Disable doc/examples build"
[lttng-ust.git] / doc / examples / Makefile.am
CommitLineData
a106a9f8 1doc_examplesdir = ${docdir}/examples
7ccf75d3
MD
2doc_examples_easy_ustdir = ${docdir}/examples/easy-ust
3doc_examples_gen_tpdir = ${docdir}/examples/gen-tp
60302adc 4doc_examples_demodir = ${docdir}/examples/demo
a106a9f8
JG
5doc_examples_hello_static_libdir = ${docdir}/examples/hello-static-lib
6
7dist_doc_examples_DATA = README
7ccf75d3
MD
8
9dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \
10 easy-ust/sample.c \
11 easy-ust/sample_component_provider.h easy-ust/tp.c
12
13dist_doc_examples_gen_tp_DATA = gen-tp/Makefile \
14 gen-tp/sample.c gen-tp/sample_tracepoint.tp
60302adc
JG
15
16dist_doc_examples_demo_DATA = demo/demo.c \
17 demo/demo-trace \
18 demo/Makefile \
19 demo/README \
20 demo/tp2.c \
21 demo/tp3.c \
22 demo/tp.c \
23 demo/ust_tests_demo2.h \
24 demo/ust_tests_demo3.h \
25 demo/ust_tests_demo.h
a106a9f8
JG
26
27dist_doc_examples_hello_static_lib_DATA = hello-static-lib/Makefile \
28 hello-static-lib/hello.c \
29 hello-static-lib/README \
30 hello-static-lib/ust_tests_hello.h \
31 hello-static-lib/tp.c
32
a8ffd975
MD
33if NO_SHARED
34# Don't build examples if shared libraries support was explicitly
35# disabled.
36else
37SUBDIRS_PROXY = easy-ust demo gen-tp hello-static-lib
38
39all-local:
40 for subdir in $(SUBDIRS_PROXY); do \
41 cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../include/" AM_LDFLAGS='-L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../tools/" $(AM_MAKEFLAGS) all; cd ..; \
42 done
43
44clean-local:
45 for subdir in $(SUBDIRS_PROXY); do \
46 cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean; cd ..; \
47 done
48endif
This page took 0.024135 seconds and 4 git commands to generate.