forked from enlightenment/efl
elementary: add make rule to generate screenshots of the examples.
SVN revision: 60408
This commit is contained in:
parent
f4df2cb79d
commit
d1ceedffd3
|
@ -72,8 +72,12 @@ config.rpath
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = elementary.pc
|
pkgconfig_DATA = elementary.pc
|
||||||
|
|
||||||
.PHONY: doc
|
.PHONY: doc screenshots
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
@echo "entering doc/"
|
@echo "entering doc/"
|
||||||
$(MAKE) -C doc doc
|
$(MAKE) -C doc doc
|
||||||
|
|
||||||
|
screenshots: all
|
||||||
|
@echo "entering src/examples/"
|
||||||
|
$(MAKE) -C src/examples screenshots
|
||||||
|
|
|
@ -11,7 +11,7 @@ doc-clean:
|
||||||
|
|
||||||
doc: all doc-clean
|
doc: all doc-clean
|
||||||
$(efl_doxygen)
|
$(efl_doxygen)
|
||||||
cp $(srcdir)/img/* html/
|
cp -r $(srcdir)/img/* html/
|
||||||
rm -rf $(PACKAGE_DOCNAME).tar*
|
rm -rf $(PACKAGE_DOCNAME).tar*
|
||||||
mkdir -p $(PACKAGE_DOCNAME)/doc
|
mkdir -p $(PACKAGE_DOCNAME)/doc
|
||||||
cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
|
cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
MAINTAINERCLEANFILES = Makefile.in
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
|
.PHONY: screenshots
|
||||||
|
|
||||||
pkglibdir = $(datadir)/$(PACKAGE)/examples
|
pkglibdir = $(datadir)/$(PACKAGE)/examples
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
|
@ -36,5 +38,26 @@ pkglib_PROGRAMS += \
|
||||||
bg_example_02 \
|
bg_example_02 \
|
||||||
bg_example_03
|
bg_example_03
|
||||||
|
|
||||||
endif
|
# This variable will hold the list of screenshots that will be made
|
||||||
|
# by "make screenshots". Each item in the list is of the form:
|
||||||
|
# <example executable>:<screenshot filename>:<delay in seconds>
|
||||||
|
SCREENSHOTS = \
|
||||||
|
actionslider_example_01:actionslider_01.png:0.0 \
|
||||||
|
bg_example_02:bg_01.png:0.0
|
||||||
|
|
||||||
|
screenshots: all
|
||||||
|
@mkdir -p $(top_srcdir)/doc/img/screenshots
|
||||||
|
@for ss in $(SCREENSHOTS); do \
|
||||||
|
SS_ENTRY=($${ss//:/ }) ; \
|
||||||
|
EXAMPLE=$${SS_ENTRY[0]} ; \
|
||||||
|
SS_FILE=$${SS_ENTRY[1]} ; \
|
||||||
|
SS_DELAY=$${SS_ENTRY[2]} ; \
|
||||||
|
ELM_ENGINE="shot:delay=$${SS_DELAY}:file=$(top_srcdir)/doc/img/screenshots/$${SS_FILE}" ./$${EXAMPLE} ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
screenshots:
|
||||||
|
@echo "Examples are not built. Run \"./configure --enable-build-examples\" first."
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue