summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am263
1 files changed, 0 insertions, 263 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index 17adf52..0000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,263 +0,0 @@
1SUBDIRS = previews widgets
2
3MAINTAINERCLEANFILES = Makefile.in
4
5.PHONY: doc
6
7PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc
8
9if EFL_BUILD_DOC
10
11doc-clean:
12 rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
13
14previews-build:
15 @$(MAKE) -C previews
16
17previews-data:
18 @$(MAKE) -C previews doc
19# dir:file name:executable:width:height
20WGT_PREVIEW = \
21 actionslider:preview-00.png:widget_preview_actionslider:120:30 \
22 bg:preview-00.png:widget_preview_bg:50:50 \
23 box:preview-00.png:widget_preview_box:200:160 \
24 bubble:preview-00.png:widget_preview_bubble1:160:50 \
25 bubble:preview-01.png:widget_preview_bubble2:160:50 \
26 bubble:preview-02.png:widget_preview_bubble3:160:50 \
27 button:preview-00.png:widget_preview_button1:160:50 \
28 button:preview-01.png:widget_preview_button2:160:50 \
29 button:preview-02.png:widget_preview_button3:160:50 \
30 calendar:preview-00.png:widget_preview_calendar:300:300 \
31 check:preview-00.png:widget_preview_check1:160:50 \
32 check:preview-01.png:widget_preview_check2:160:50 \
33 check:preview-02.png:widget_preview_check3:160:50 \
34 clock:preview-00.png:widget_preview_clock:200:100 \
35 colorselector:preview-00.png:widget_preview_colorselector:320:300 \
36 conformant:preview-00.png:widget_preview_conformant:200:400 \
37 combobox:preview-00.png:widget_preview_combobox:300:300 \
38 ctxpopup:preview-00.png:widget_preview_ctxpopup:200:130 \
39 datetime:preview-00.png:widget_preview_datetime1:360:60 \
40 datetime:preview-01.png:widget_preview_datetime2:200:60 \
41 datetime:preview-02.png:widget_preview_datetime3:200:60 \
42 dayselector:preview-00.png:widget_preview_dayselector:350:50 \
43 diskselector:preview-00.png:widget_preview_diskselector:120:50 \
44 entry:preview-00.png:widget_preview_entry1:160:50 \
45 entry:preview-01.png:widget_preview_entry2:160:50 \
46 entry:preview-02.png:widget_preview_entry3:160:50 \
47 entry:preview-03.png:widget_preview_entry4:160:50 \
48 fileselector:preview-00.png:widget_preview_fileselector:300:300 \
49 fileselector_button:preview-00.png:widget_preview_fileselector_button1:200:50 \
50 fileselector_button:preview-01.png:widget_preview_fileselector_button2:200:50 \
51 fileselector_button:preview-02.png:widget_preview_fileselector_button3:160:50 \
52 fileselector_entry:preview-00.png:widget_preview_fileselector_entry:70:50 \
53 flip:preview-00.png:widget_preview_flip:100:100 \
54 flipselector:preview-00.png:widget_preview_flipselector:100:60 \
55 frame:preview-00.png:widget_preview_frame:100:50 \
56 gengrid:preview-00.png:widget_preview_gengrid:200:160 \
57 genlist:preview-00.png:widget_preview_genlist1:200:200 \
58 genlist:preview-01.png:widget_preview_genlist2:200:160 \
59 genlist:preview-02.png:widget_preview_genlist3:200:160 \
60 genlist:preview-03.png:widget_preview_genlist4:200:160 \
61 genlist:preview-04.png:widget_preview_genlist5:200:160 \
62 hover:preview-00.png:widget_preview_hover:90:170 \
63 hoversel:preview-00.png:widget_preview_hoversel:90:170 \
64 icon:preview-00.png:widget_preview_icon:50:50 \
65 image:preview-00.png:widget_preview_image:50:50 \
66 index:preview-00.png:widget_preview_index:200:160 \
67 inwin:preview-00.png:widget_preview_inwin1:200:160 \
68 inwin:preview-01.png:widget_preview_inwin2:200:160 \
69 inwin:preview-02.png:widget_preview_inwin3:200:160 \
70 label:preview-00.png:widget_preview_label:70:30 \
71 layout:preview-00.png:widget_preview_layout:200:160 \
72 list:preview-00.png:widget_preview_list:200:200 \
73 map:preview-00.png:widget_preview_map:256:256 \
74 mapbuf:preview-00.png:widget_preview_mapbuf:200:200 \
75 menu:preview-00.png:widget_preview_menu:100:100 \
76 notify:preview-00.png:widget_preview_notify:60:30 \
77 nstate:preview-00.png:widget_preview_nstate:45:28 \
78 panel:preview-00.png:widget_preview_panel:150:50 \
79 panes:preview-00.png:widget_preview_panes:200:100 \
80 photocam:preview-00.png:widget_preview_photocam:243:162 \
81 popup:preview-00.png:widget_preview_popup:480:400 \
82 prefs:preview-00.png:widget_preview_prefs:200:160 \
83 prefs:preview-00.png:widget_preview_prefs:280:250 \
84 progressbar:preview-00.png:widget_preview_progressbar:150:50 \
85 radio:preview-00.png:widget_preview_radio:60:20 \
86 scroller:preview-00.png:widget_preview_scroller:100:30 \
87 segment_control:preview-00.png:widget_preview_segment_control:240:120 \
88 separator:preview-00.png:widget_preview_separator:10:80 \
89 slider:preview-00.png:widget_preview_slider:200:100 \
90 slideshow:preview-00.png:widget_preview_slideshow:50:50 \
91 spinner:preview-00.png:widget_preview_spinner:160:30 \
92 table::preview-00.png:widget_preview_table:100:100 \
93 table:preview-00.png:widget_preview_table:100:100 \
94 thumb:preview-00.png:widget_preview_thumb:100:100 \
95 toolbar:preview-00.png:widget_preview_toolbar:300:100 \
96 web:preview-00.png:widget_preview_web:300:300 \
97 win:preview-00.png:widget_preview_win:200:200
98
99# put in here every elm widget, so that it gets its hierarchy tree built
100# then, make a reference to the generated image, in the form
101# @image html <WGTNAME>_inheritance_tree.{png,eps}
102WGT_TREE = \
103 actionslider \
104 bg \
105 box \
106 bubble \
107 button \
108 calendar \
109 check \
110 clock \
111 colorselector \
112 conformant \
113 container \
114 combobox \
115 ctxpopup \
116 datetime \
117 dayselector \
118 diskselector \
119 entry \
120 fileselector \
121 fileselector_button \
122 fileselector_entry \
123 flip \
124 flipselector \
125 frame \
126 gengrid \
127 genlist \
128 gesture_layer \
129 glview \
130 grid \
131 hover \
132 hoversel \
133 icon \
134 image \
135 index \
136 inwin \
137 label \
138 layout \
139 list \
140 map \
141 mapbuf \
142 menu \
143 multibuttonentry \
144 naviframe \
145 notify \
146 panel \
147 panes \
148 photo \
149 photocam \
150 player \
151 plug \
152 popup \
153 prefs \
154 progressbar \
155 radio \
156 route \
157 scroller \
158 segment_control \
159 separator \
160 slider \
161 slideshow \
162 spinner \
163 table \
164 thumb \
165 toolbar \
166 video \
167 web \
168 win
169
170widget-build:
171 @$(MAKE) -C widgets
172
173widget-preview: widget-build
174 @for ss in $(WGT_PREVIEW); do \
175 ENTRY=($${ss//:/ }) ; \
176 DIR=$${ENTRY[0]} ; \
177 SS=$${ENTRY[1]} ; \
178 BIN=$${ENTRY[2]} ; \
179 X=$${ENTRY[3]} ; \
180 Y=$${ENTRY[4]} ; \
181 echo "Generating widget preview image" $${SS} "for widget" $${DIR}; \
182 $(top_srcdir)/doc/shot.sh $(top_builddir)/doc/html/img/widget/$${DIR} $${SS} $(top_builddir)/doc/widgets/$${BIN} $${X} $${Y} ; \
183 mkdir -p $(top_builddir)/doc/latex/img/widget/$${DIR} ; \
184 convert $(top_builddir)/doc/html/img/widget/$${DIR}/$${SS} $(top_builddir)/doc/latex/img/widget/$${DIR}/$${SS/.png/.eps} ; \
185 done
186
187widget-tree-figures: doc
188 $(srcdir)/widget_hierarchy.py --scan $(top_srcdir)/src/lib -o $(builddir)/widget_tree.p;
189 $(srcdir)/widget_hierarchy.py --tree -i $(builddir)/widget_tree.p > $(builddir)/widgets_tree.dot;
190 dot -Tpng -o $(top_srcdir)/doc/img/elm-widget-tree.png $(top_builddir)/doc/widgets_tree.dot;
191 convert $(top_srcdir)/doc/img/elm-widget-tree.png $(top_srcdir)/doc/img/"elm-widget-tree.eps";
192 @for wgt in $(WGT_TREE); do \
193 WGT_FILE_NAME="WNAME_inheritance_tree.dot"; \
194 WGT_FILE_NAME=$${WGT_FILE_NAME/WNAME/$${wgt}}; \
195 echo "Generating widget inheritance tree image for widget" $${wgt}; \
196 $(srcdir)/widget_hierarchy.py --widget=$${wgt} -i $(top_builddir)/doc/widget_tree.p > $(top_builddir)/doc/$${WGT_FILE_NAME}; \
197 dot -Tpng -o $(top_srcdir)/doc/img/$${WGT_FILE_NAME/.dot/.png} $(top_builddir)/doc/$${WGT_FILE_NAME}; \
198 convert $(top_srcdir)/doc/img/$${WGT_FILE_NAME/.dot/.png} $(top_srcdir)/doc/img/$${WGT_FILE_NAME/.dot/.eps}; \
199 rm $${WGT_FILE_NAME}; \
200 done
201
202doc: all previews-build previews-data widget-preview
203 $(efl_doxygen)
204 @echo "$(efl_doxygen) done !"
205 @echo "copying $(srcdir)/img/*.png to html/"
206 cp $(srcdir)/img/*.png html/
207 @echo "copying $(srcdir)/img/*.eps to latex/"
208 cp $(srcdir)/img/*.eps latex/
209 @echo "Removing older tarball $(PACKAGE_DOCNAME).tar*"
210 rm -rf $(PACKAGE_DOCNAME).tar*
211 @echo "Generating new tarball"
212 $(MKDIR_P) $(PACKAGE_DOCNAME)/doc
213 cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
214 tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/
215 bzip2 -9 $(PACKAGE_DOCNAME).tar
216 @echo "Removing temporary directory"
217 rm -rf $(PACKAGE_DOCNAME)/
218 @echo "Moving tarball $(PACKAGE_DOCNAME).tar.bz2 to $(top_builddir)"
219 mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir)
220 @echo "Documentation Package: doc/$(PACKAGE_DOCNAME).tar.bz2"
221 @echo "Documentation HTML: doc/html"
222
223clean-local: doc-clean
224
225else
226
227doc:
228 @echo "Documentation not built. Run ./configure --help"
229
230endif
231
232EXTRA_DIST = \
233Doxyfile.in \
234e.css \
235head.html \
236foot.html \
237ecore_examples.dox \
238eldbus_examples.dox \
239edje_examples.dox \
240eet_examples.dox \
241eina_examples.dox \
242eio_examples.dox \
243emotion_examples.dox \
244eo_tutorial.dox \
245ephysics_examples.dox \
246evas_examples.dox \
247main.dox \
248pkgconfig.dox \
249shot.sh
250
251include images.mk
252
253all-local:
254 @rm -f images.tmp; \
255 echo 'EXTRA_DIST += \' > images.tmp; \
256 (cd $(srcdir) && find ./img -type f -print | cut -d/ -f2- | grep -v '~' | LANG=C LANGUAGE=C LC_ALL=C LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C sort | tr '\n' ' ') >> images.tmp && \
257 echo >> images.tmp && \
258 if ! cmp "$(srcdir)/images.mk" images.tmp >/dev/null; then \
259 echo "warning: new images added to '$(srcdir)/images.mk'"; \
260 mv -f images.tmp "$(srcdir)/images.mk"; \
261 else \
262 rm images.tmp; \
263 fi