summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-06-16 21:08:05 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-06-16 21:08:05 +0000
commita17e3a90211f89de387245f1a8d291e213e07e0c (patch)
tree101fb0317d237fea330c39728e4a24a9a610211a
parent8734281e61afb52760df5733591b9017d133f8fc (diff)
elementary: add make rule to generate screenshots of the examples.
SVN revision: 60408
-rw-r--r--Makefile.am6
-rw-r--r--doc/Makefile.am2
-rw-r--r--src/examples/Makefile.am25
3 files changed, 30 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 01a359838..46d2871a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,8 +72,12 @@ config.rpath
72pkgconfigdir = $(libdir)/pkgconfig 72pkgconfigdir = $(libdir)/pkgconfig
73pkgconfig_DATA = elementary.pc 73pkgconfig_DATA = elementary.pc
74 74
75.PHONY: doc 75.PHONY: doc screenshots
76 76
77doc: 77doc:
78 @echo "entering doc/" 78 @echo "entering doc/"
79 $(MAKE) -C doc doc 79 $(MAKE) -C doc doc
80
81screenshots: all
82 @echo "entering src/examples/"
83 $(MAKE) -C src/examples screenshots
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 64ad65ea0..832a38181 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -11,7 +11,7 @@ doc-clean:
11 11
12doc: all doc-clean 12doc: all doc-clean
13 $(efl_doxygen) 13 $(efl_doxygen)
14 cp $(srcdir)/img/* html/ 14 cp -r $(srcdir)/img/* html/
15 rm -rf $(PACKAGE_DOCNAME).tar* 15 rm -rf $(PACKAGE_DOCNAME).tar*
16 mkdir -p $(PACKAGE_DOCNAME)/doc 16 mkdir -p $(PACKAGE_DOCNAME)/doc
17 cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc 17 cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am
index 6a31ec0b6..f58fccefc 100644
--- a/src/examples/Makefile.am
+++ b/src/examples/Makefile.am
@@ -1,5 +1,7 @@
1MAINTAINERCLEANFILES = Makefile.in 1MAINTAINERCLEANFILES = Makefile.in
2 2
3.PHONY: screenshots
4
3pkglibdir = $(datadir)/$(PACKAGE)/examples 5pkglibdir = $(datadir)/$(PACKAGE)/examples
4 6
5AM_CPPFLAGS = \ 7AM_CPPFLAGS = \
@@ -36,5 +38,26 @@ pkglib_PROGRAMS += \
36 bg_example_02 \ 38 bg_example_02 \
37 bg_example_03 39 bg_example_03
38 40
39endif 41# This variable will hold the list of screenshots that will be made
42# by "make screenshots". Each item in the list is of the form:
43# <example executable>:<screenshot filename>:<delay in seconds>
44SCREENSHOTS = \
45 actionslider_example_01:actionslider_01.png:0.0 \
46 bg_example_02:bg_01.png:0.0
47
48screenshots: all
49 @mkdir -p $(top_srcdir)/doc/img/screenshots
50 @for ss in $(SCREENSHOTS); do \
51 SS_ENTRY=($${ss//:/ }) ; \
52 EXAMPLE=$${SS_ENTRY[0]} ; \
53 SS_FILE=$${SS_ENTRY[1]} ; \
54 SS_DELAY=$${SS_ENTRY[2]} ; \
55 ELM_ENGINE="shot:delay=$${SS_DELAY}:file=$(top_srcdir)/doc/img/screenshots/$${SS_FILE}" ./$${EXAMPLE} ; \
56 done
40 57
58else
59
60screenshots:
61 @echo "Examples are not built. Run \"./configure --enable-build-examples\" first."
62
63endif