Elementary: colorselector 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         colorselector_example_01.c
36         transit_example_01.c \
37         transit_example_02.c \
38         transit_example_03.c \
39         transit_example_04.c \
40         bg_example_01.c \
41         bg_example_02.c \
42         bg_example_03.c \
43         box_example_02.c \
44         general_funcs_example.c \
45         theme_example_01.c \
46         theme_example_02.c \
47         theme_example.edc
48
49 pkglib_PROGRAMS =
50
51 if EFL_INSTALL_EXAMPLES
52 filesdir = $(datadir)/$(PACKAGE)/examples
53 files_DATA = $(SRCS)
54 endif
55
56 if EFL_BUILD_EXAMPLES
57 theme_example.edj: Makefile theme_example.edc
58         $(EDJE_CC) $(EDJE_FLAGS) \
59         $(top_srcdir)/src/examples/theme_example.edc \
60         $(top_builddir)/src/examples/theme_example.edj
61
62 clean-local:
63         rm -f *.edj
64
65 pkglib_PROGRAMS += \
66         actionslider_example_01 \
67         anchorblock_example_01 \
68         animator_example_01 \
69         bubble_example_01 \
70         button_example_01 \
71         colorselector_example_01 \
72         transit_example_01 \
73         transit_example_02 \
74         transit_example_03 \
75         transit_example_04 \
76         bg_example_01 \
77         bg_example_02 \
78         bg_example_03 \
79         box_example_02 \
80         general_funcs_example \
81         theme_example_01 \
82         theme_example_02 \
83         theme_example.edj
84
85 # This variable will hold the list of screenshots that will be made
86 # by "make screenshots". Each item in the list is of the form:
87 # <example executable>:<screenshot filename>:<delay in seconds>
88 SCREENSHOTS = \
89         actionslider_example_01:actionslider_01.png:0.0 \
90         bg_example_02:bg_01.png:0.0 \
91         box_example_02:box_example_02.png:1.3 \
92         bubble_example_01:bubble_example_01.png:0.0 \
93         button_example_01:button_01.png:0.0 \
94         colorselector_example_01:colorselector_example_01.png:0.0 \
95         animator_example_01:animator_example_01.png:0.2 \
96         animator_example_01:animator_example_02.png:0.5 \
97         animator_example_01:animator_example_03.png:0.9 \
98         theme_example_01:theme_example_01.png:0.0
99
100 screenshots: all
101         @mkdir -p $(top_srcdir)/doc/img/screenshots
102         @for ss in $(SCREENSHOTS); do \
103                 SS_ENTRY=($${ss//:/ }) ; \
104                 EXAMPLE=$${SS_ENTRY[0]} ; \
105                 SS_FILE=$${SS_ENTRY[1]} ; \
106                 SS_DELAY=$${SS_ENTRY[2]} ; \
107                 ELM_ENGINE="shot:delay=$${SS_DELAY}:file=$(top_srcdir)/doc/img/screenshots/$${SS_FILE}" ./$${EXAMPLE} ; \
108                 convert $(top_srcdir)/doc/img/screenshots/$${SS_FILE} $(top_srcdir)/doc/img/screenshots/$${SS_FILE/.png/.eps} ; \
109         done
110
111 else
112
113 screenshots:
114         @echo "Examples are not built. Run \"./configure --enable-build-examples\" first."
115
116 endif