Fix: examples jul: add missing files to make dist
[deliverable/lttng-ust.git] / doc / examples / Makefile.am
... / ...
CommitLineData
1doc_examplesdir = ${docdir}/examples
2doc_examples_easy_ustdir = ${docdir}/examples/easy-ust
3doc_examples_gen_tpdir = ${docdir}/examples/gen-tp
4doc_examples_demodir = ${docdir}/examples/demo
5doc_examples_hello_static_libdir = ${docdir}/examples/hello-static-lib
6doc_examples_demo_tracefdir = ${docdir}/examples/demo-tracef
7doc_examples_demo_tracelogdir = ${docdir}/examples/demo-tracelog
8doc_examples_clock_overridedir = ${docdir}/examples/clock-override
9doc_examples_getcpu_overridedir = ${docdir}/examples/getcpu-override
10
11if BUILD_JAVA_AGENT_WITH_JUL
12doc_examples_java_juldir = ${docdir}/examples/java-jul
13dist_doc_examples_java_jul_DATA = java-jul/Makefile \
14 java-jul/Hello.java \
15 java-jul/run \
16 java-jul/FilterChangeListenerExample.java \
17 java-jul/README
18SUBDIRS_JUL = java-jul
19endif
20
21if BUILD_JAVA_AGENT_WITH_LOG4J
22doc_examples_java_log4jdir = ${docdir}/examples/java-log4j
23dist_doc_examples_java_log4j_DATA = java-log4j/Makefile \
24 java-log4j/Hello.java \
25 java-log4j/run
26SUBDIRS_LOG4J = java-log4j
27endif
28
29if BUILD_PYTHON_AGENT
30doc_examples_pythondir = ${docdir}/examples/python
31dist_doc_examples_python_DATA = python/hello.py
32endif
33
34dist_doc_examples_DATA = README
35
36dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \
37 easy-ust/sample.c \
38 easy-ust/sample_component_provider.h easy-ust/tp.c
39
40dist_doc_examples_gen_tp_DATA = gen-tp/Makefile \
41 gen-tp/sample.c gen-tp/sample_tracepoint.tp
42
43dist_doc_examples_demo_DATA = demo/demo.c \
44 demo/demo-trace \
45 demo/Makefile \
46 demo/README \
47 demo/tp2.c \
48 demo/tp3.c \
49 demo/tp.c \
50 demo/ust_tests_demo2.h \
51 demo/ust_tests_demo3.h \
52 demo/ust_tests_demo.h
53
54dist_doc_examples_hello_static_lib_DATA = hello-static-lib/Makefile \
55 hello-static-lib/hello.c \
56 hello-static-lib/README \
57 hello-static-lib/ust_tests_hello.h \
58 hello-static-lib/tp.c
59
60dist_doc_examples_demo_tracef_DATA = demo-tracef/Makefile \
61 demo-tracef/demo-tracef.c \
62 demo-tracef/README
63
64dist_doc_examples_demo_tracelog_DATA = demo-tracelog/Makefile \
65 demo-tracelog/demo-tracelog.c \
66 demo-tracelog/README
67
68dist_doc_examples_clock_override_DATA = clock-override/Makefile \
69 clock-override/lttng-ust-clock-override-example.c \
70 clock-override/run-clock-override \
71 clock-override/README
72
73dist_doc_examples_getcpu_override_DATA = getcpu-override/Makefile \
74 getcpu-override/lttng-ust-getcpu-override-example.c \
75 getcpu-override/run-getcpu-override \
76 getcpu-override/README
77
78if NO_SHARED
79# Don't build examples if shared libraries support was explicitly
80# disabled.
81else
82# Copies are for VPATH build support
83SUBDIRS_PROXY = easy-ust demo hello-static-lib demo-tracef clock-override \
84 getcpu-override demo-tracelog
85
86if BUILD_GEN_TP_EXAMPLES
87SUBDIRS_PROXY += gen-tp
88endif
89
90all-local:
91 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
92 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL) $(SUBDIRS_LOG4J); do \
93 cp -pfR $(srcdir)/$$subdir $(builddir); \
94 done; \
95 fi; \
96 if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
97 echo "Examples: absolute top_srcdir path $(top_srcdir)"; \
98 rel_src_subdir=""; \
99 else \
100 echo "Examples: relative top_srcdir path $(top_srcdir)"; \
101 rel_src_subdir="../"; \
102 fi; \
103 if [ x"$(shell echo "$(top_builddir)" | grep "^/" | wc -l)" = x"1" ]; then \
104 echo "Examples: absolute top_builddir path $(top_builddir)"; \
105 rel_build_subdir=""; \
106 else \
107 echo "Examples: relative top_builddir path $(top_builddir)"; \
108 rel_build_subdir="../"; \
109 fi; \
110 for subdir in $(SUBDIRS_PROXY); do \
111 (cd $$subdir && $(MAKE) AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir$(top_srcdir)/include/ -I$$rel_build_subdir$(top_builddir)/include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/" -Wl,-rpath-link="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
112 done; \
113 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
114 for subdir in $(SUBDIRS_JUL); do \
115 (cd $(SUBDIRS_JUL) && $(MAKE) JAVA_CLASSPATH_OVERRIDE_JUL="../../../liblttng-ust-java-agent/java/lttng-ust-agent-jul" JAVA_CLASSPATH_OVERRIDE_COMMON="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
116 done; \
117 fi; \
118 if [ x"$(SUBDIRS_LOG4J)" != x"" ]; then \
119 for subdir in $(SUBDIRS_LOG4J); do \
120 (cd $(SUBDIRS_LOG4J) && $(MAKE) JAVA_CLASSPATH_OVERRIDE_LOG4J="../../../liblttng-ust-java-agent/java/lttng-ust-agent-log4j" JAVA_CLASSPATH_OVERRIDE_COMMON="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
121 done; \
122 fi;
123
124clean-local:
125 @for subdir in $(SUBDIRS_PROXY); do \
126 if [ -d $$subdir ]; then \
127 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
128 fi; \
129 done; \
130 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
131 for subdir in $(SUBDIRS_JUL); do \
132 if [ -d $$subdir ]; then \
133 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
134 fi; \
135 done; \
136 fi; \
137 if [ x"$(SUBDIRS_LOG4J)" != x"" ]; then \
138 for subdir in $(SUBDIRS_LOG4J); do \
139 if [ -d $$subdir ]; then \
140 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
141 fi; \
142 done; \
143 fi; \
144 if [ x"$(srcdir)" != x"$(builddir)" ]; then \
145 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL) $(SUBDIRS_LOG4J); do \
146 rm -rf $(builddir)/$$subdir; \
147 done; \
148 fi;
149endif
This page took 0.02581 seconds and 5 git commands to generate.