Doc: Add makefile for text filter previews
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 13 Feb 2014 03:38:37 +0000 (12:38 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 13 Feb 2014 08:36:23 +0000 (17:36 +0900)
Build utility tool based on the local hidden .libs

configure.ac
doc/Makefile.am
doc/previews/Makefile.am [new file with mode: 0644]

index a88837f349529ecea512f6e6c3ba65b10995b5b1..6b7f9a2bd4ca92ae24509f12f0130b824770bb0f 100644 (file)
@@ -3919,6 +3919,7 @@ Makefile
 data/Makefile
 doc/Makefile
 doc/Doxyfile
+doc/previews/Makefile
 src/Makefile
 src/benchmarks/eina/Makefile
 src/benchmarks/eo/Makefile
index 63a834e51999ad0217602113aec9da1cbfb8a2a8..06712a98eb77c693f3e5a1bd39f8b9f98b1963e5 100644 (file)
@@ -1,3 +1,5 @@
+SUBDIRS = previews
+
 MAINTAINERCLEANFILES = Makefile.in 
 
 .PHONY: doc
@@ -9,7 +11,13 @@ if EFL_BUILD_DOC
 doc-clean:
        rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
 
-doc: all
+previews-build:
+       @$(MAKE) -C previews
+
+previews-data:
+       @$(MAKE) -C previews doc
+
+doc: all previews-build previews-data
        $(efl_doxygen)
        cp $(srcdir)/img/* html/
        cp $(srcdir)/img/*.eps latex/
diff --git a/doc/previews/Makefile.am b/doc/previews/Makefile.am
new file mode 100644 (file)
index 0000000..afc3e94
--- /dev/null
@@ -0,0 +1,50 @@
+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 =
+
+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)
+