aboutsummaryrefslogtreecommitdiffstats
path: root/doc/previews/Makefile.am
blob: fbfdd297dc2c554c14c4e4d4a5d5c3dfab89625c (plain) (blame)
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
if EFL_BUILD_DOC

.PHONY: doc

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib/efl \
	-I$(top_srcdir)/src/lib/eina \
	-I$(top_srcdir)/src/lib/evas \
	-I$(top_srcdir)/src/lib/ecore \
	-I$(top_srcdir)/src/lib/ecore_evas \
	-DEFL_BETA_API_SUPPORT=1 \
	-DEFL_EO_API_SUPPORT=1 \
	-D_GNU_SOURCE

LDADD = \
	-L$(top_srcdir)/src/lib/eina/.libs \
	-L$(top_srcdir)/src/lib/ecore/.libs \
	-L$(top_srcdir)/src/lib/evas/.libs \
	-L$(top_srcdir)/src/lib/ecore_evas/.libs \
	-leina \
	-levas \
	-lecore \
	-lecore_evas

noinst_PROGRAMS = preview_text_filter

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

PREVIEWS = blend blur bump curve grow mask transform \
	example_1

previews-data:
	$(MKDIR_P) $(DATADIR)
	$(MKDIR_P) $(HTMLDIR)
	@for a in $(PREVIEWS) ; do \
		echo "  GEN      filter_$${a}.png" ; \
		source ${top_srcdir}/doc/previews/filter_$${a}.sh ; \
		$(top_srcdir)/doc/previews/preview_text_filter "$${TEXT}" "$${FILTER}" "$(DATADIR)/filter_$${a}.png" "$${FONT}" "$${SIZE}" ; \
		cp "$(DATADIR)/filter_$${a}.png" "$(HTMLDIR)/" ; \
	done

doc: Makefile preview_text_filter previews-data

endif

EXTRA_DIST = preview_text_filter.c

clean-local:
	rm -rf $(DATADIR)