summaryrefslogtreecommitdiff
path: root/doc/previews/Makefile.am
blob: ba952dd1546ab3c262f345edda61f12e1cd7f52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
if EFL_BUILD_DOC

.PHONY: doc

AM_CPPFLAGS = \
-I$(top_builddir)/src/lib/efl \
-I$(top_srcdir)/src/lib/efl \
-I. \
-I$(builddir) \
-I$(top_srcdir)/src/lib/evil \
-I$(top_builddir)/src/lib/evil \
-I$(top_srcdir)/src/lib/eina \
-I$(top_builddir)/src/lib/eina \
-I$(top_srcdir)/src/lib/eo \
-I$(top_builddir)/src/lib/eo \
-I$(top_srcdir)/src/lib/eet \
-I$(top_builddir)/src/lib/eet \
-I$(top_srcdir)/src/lib/evas \
-I$(top_builddir)/src/lib/evas \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/ecore_evas \
-I$(top_builddir)/src/lib/ecore_evas \
-DEFL_BETA_API_SUPPORT=1 \
-DEFL_EO_API_SUPPORT=1 \
@ECORE_EVAS_CFLAGS@

LDADD = \
$(top_builddir)/src/lib/eina/libeina.la \
$(top_builddir)/src/lib/eo/libeo.la \
$(top_builddir)/src/lib/efl/libefl.la \
$(top_builddir)/src/lib/eet/libeet.la \
$(top_builddir)/src/lib/evas/libevas.la \
$(top_builddir)/src/lib/ecore/libecore.la \
$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
@ECORE_EVAS_LDFLAGS@

noinst_PROGRAMS = preview_text_filter

DATADIR = ${abs_top_srcdir}/doc/previews/img
HTMLDIR = ${abs_top_srcdir}/doc/html

PREVIEWS = blend blur bump curve grow mask transform \
example_1 padding

previews-data: preview_text_filter
	$(MKDIR_P) $(DATADIR)
	$(MKDIR_P) $(HTMLDIR)
	@for a in $(PREVIEWS) ; do \
		echo "  GEN      filter_$${a}.png" ; \
		FONT="Sans" ; \
		SIZE=24 ; \
		TEXT="TEXT" ; \
		FILTER=`cat ${top_srcdir}/src/examples/evas/filters/filter_$${a}.lua` ; \
		if [ -e ${top_srcdir}/doc/previews/filter_$${a}.sh ] ; then \
			source ${top_srcdir}/doc/previews/filter_$${a}.sh ; \
		fi ; \
		EVAS_DATA_DIR="$(top_srcdir)/src/lib/evas" $(top_builddir)/doc/previews/preview_text_filter "$${TEXT}" "$${FILTER}" "$(DATADIR)/filter_$${a}.png" "$${FONT}" "$${SIZE}" ; \
		cp "$(DATADIR)/filter_$${a}.png" "$(HTMLDIR)/" ; \
	done

if BUILD_EFL_NATIVE
doc: Makefile previews-data
endif


endif

EXTRA_DIST = preview_text_filter.c

clean-local:
	rm -rf $(DATADIR)