Fix: java-jul/Makefile should not be marked as a binary
[lttng-ust.git] / doc / examples / Makefile.am
1 doc_examplesdir = ${docdir}/examples
2 doc_examples_easy_ustdir = ${docdir}/examples/easy-ust
3 doc_examples_gen_tpdir = ${docdir}/examples/gen-tp
4 doc_examples_demodir = ${docdir}/examples/demo
5 doc_examples_hello_static_libdir = ${docdir}/examples/hello-static-lib
6
7 if BUILD_JNI_INTERFACE
8 doc_examples_java_juldir = ${docdir}/examples/java-jul
9 dist_doc_examples_java_jul_DATA = java-jul/Makefile \
10 java-jul/Hello.java \
11 java-jul/run
12 SUBDIRS_JUL = java-jul
13 endif
14
15 dist_doc_examples_DATA = README
16
17 dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \
18 easy-ust/sample.c \
19 easy-ust/sample_component_provider.h easy-ust/tp.c
20
21 dist_doc_examples_gen_tp_DATA = gen-tp/Makefile \
22 gen-tp/sample.c gen-tp/sample_tracepoint.tp
23
24 dist_doc_examples_demo_DATA = demo/demo.c \
25 demo/demo-trace \
26 demo/Makefile \
27 demo/README \
28 demo/tp2.c \
29 demo/tp3.c \
30 demo/tp.c \
31 demo/ust_tests_demo2.h \
32 demo/ust_tests_demo3.h \
33 demo/ust_tests_demo.h
34
35 dist_doc_examples_hello_static_lib_DATA = hello-static-lib/Makefile \
36 hello-static-lib/hello.c \
37 hello-static-lib/README \
38 hello-static-lib/ust_tests_hello.h \
39 hello-static-lib/tp.c
40
41 if NO_SHARED
42 # Don't build examples if shared libraries support was explicitly
43 # disabled.
44 else
45 # Copies are for VPATH build support
46 SUBDIRS_PROXY = easy-ust demo gen-tp hello-static-lib
47
48 all-local:
49 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
50 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL); do \
51 cp -fR $(srcdir)/$$subdir $(builddir); \
52 done; \
53 fi; \
54 if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
55 echo "Examples: absolute top_srcdir path $(top_srcdir)"; \
56 rel_src_subdir=""; \
57 else \
58 echo "Examples: relative top_srcdir path $(top_srcdir)"; \
59 rel_src_subdir="../"; \
60 fi; \
61 if [ x"$(shell echo "$(top_builddir)" | grep "^/" | wc -l)" = x"1" ]; then \
62 echo "Examples: absolute top_builddir path $(top_builddir)"; \
63 rel_build_subdir=""; \
64 else \
65 echo "Examples: relative top_builddir path $(top_builddir)"; \
66 rel_build_subdir="../"; \
67 fi; \
68 for subdir in $(SUBDIRS_PROXY); do \
69 (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/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
70 done; \
71 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
72 for subdir in $(SUBDIRS_JUL); do \
73 (cd $(SUBDIRS_JUL) && $(MAKE) JAVA_CLASSPATH_OVERRIDE="../../../liblttng-ust-jul" JAVA_JARFILE_OVERRIDE="liblttng-ust-jul.jar" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
74 done; \
75 fi;
76
77 clean-local:
78 @for subdir in $(SUBDIRS_PROXY); do \
79 if [ -d $$subdir ]; then \
80 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
81 fi; \
82 done; \
83 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
84 for subdir in $(SUBDIRS_JUL); do \
85 if [ -d $$subdir ]; then \
86 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
87 fi; \
88 done; \
89 fi; \
90 if [ x"$(srcdir)" != x"$(builddir)" ]; then \
91 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL); do \
92 rm -rf $(builddir)/$$subdir; \
93 done; \
94 fi;
95 endif
This page took 0.033145 seconds and 5 git commands to generate.