Elementary: elm_bubble documentation.
[framework/uifw/elementary.git] / src / examples / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 .PHONY: screenshots
4
5 pkglibdir = $(datadir)/$(PACKAGE)/examples
6
7 AM_CPPFLAGS = \
8 -I. \
9 -I$(top_srcdir)/src/lib \
10 -I$(top_builddir)/src/lib \
11 -DPACKAGE_DATA_DIR="\"$(datadir)/elementary\"" \
12 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
13 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
14 @ELEMENTARY_EDBUS_CFLAGS@ \
15 @ELEMENTARY_EFREET_CFLAGS@ \
16 @ELEMENTARY_ETHUMB_CFLAGS@ \
17 @ELEMENTARY_CFLAGS@
18
19 LDADD = \
20         @ELEMENTARY_LIBS@ \
21         $(top_builddir)/src/lib/libelementary.la
22
23 EDJE_CC = @edje_cc@
24 EDJE_FLAGS_VERBOSE_ =
25 EDJE_FLAGS_VERBOSE_0 =
26 EDJE_FLAGS_VERBOSE_1 = -v
27 EDJE_FLAGS = $(EDJE_FLAGS_$(V))
28
29 SRCS = \
30         actionslider_example_01.c \
31         anchorblock_example_01.c \
32         animator_example_01.c \
33         bubble_example_01.c \
34         button_example_01.c \
35         transit_example_01.c \
36         transit_example_02.c \
37         transit_example_03.c \
38         transit_example_04.c \
39         bg_example_01.c \
40         bg_example_02.c \
41         bg_example_03.c \
42         general_funcs_example.c \
43         theme_example_01.c \
44         theme_example_02.c \
45         theme_example.edc
46
47 pkglib_PROGRAMS =
48
49 if EFL_INSTALL_EXAMPLES
50 filesdir = $(datadir)/$(PACKAGE)/examples
51 files_DATA = $(SRCS)
52 endif
53
54 if EFL_BUILD_EXAMPLES
55 theme_example.edj: Makefile theme_example.edc
56         $(EDJE_CC) $(EDJE_FLAGS) \
57         $(top_srcdir)/src/examples/theme_example.edc \
58         $(top_builddir)/src/examples/theme_example.edj
59
60 clean-local:
61         rm -f *.edj
62
63 pkglib_PROGRAMS += \
64         actionslider_example_01 \
65         anchorblock_example_01 \
66         animator_example_01 \
67         bubble_example_01 \
68         button_example_01 \
69         transit_example_01 \
70         transit_example_02 \
71         transit_example_03 \
72         transit_example_04 \
73         bg_example_01 \
74         bg_example_02 \
75         bg_example_03 \
76         general_funcs_example \
77         theme_example_01 \
78         theme_example_02 \
79         theme_example.edj
80
81 # This variable will hold the list of screenshots that will be made
82 # by "make screenshots". Each item in the list is of the form:
83 # <example executable>:<screenshot filename>:<delay in seconds>
84 SCREENSHOTS = \
85         actionslider_example_01:actionslider_01.png:0.0 \
86         bg_example_02:bg_01.png:0.0 \
87         button_example_01:button_01.png:0.0 \
88         animator_example_01:animator_example_01.png:0.2 \
89         animator_example_01:animator_example_02.png:0.5 \
90         animator_example_01:animator_example_03.png:0.9 \
91         theme_example_01:theme_example_01.png:0.0
92
93 screenshots: all
94         @mkdir -p $(top_srcdir)/doc/img/screenshots
95         @for ss in $(SCREENSHOTS); do \
96                 SS_ENTRY=($${ss//:/ }) ; \
97                 EXAMPLE=$${SS_ENTRY[0]} ; \
98                 SS_FILE=$${SS_ENTRY[1]} ; \
99                 SS_DELAY=$${SS_ENTRY[2]} ; \
100                 ELM_ENGINE="shot:delay=$${SS_DELAY}:file=$(top_srcdir)/doc/img/screenshots/$${SS_FILE}" ./$${EXAMPLE} ; \
101                 convert $(top_srcdir)/doc/img/screenshots/$${SS_FILE} $(top_srcdir)/doc/img/screenshots/$${SS_FILE/.png/.eps} ; \
102         done
103
104 else
105
106 screenshots:
107         @echo "Examples are not built. Run \"./configure --enable-build-examples\" first."
108
109 endif