add the themetoxml tool ! yay
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/themes
4 localedir       = $(datadir)/locale
5 configdir       = $(sysconfdir)/xdg
6 rcdir           = $(configdir)/openbox
7 desktopfilesdir = $(datadir)/gnome/wm-properties
8 pkgconfigdir    = $(libdir)/pkgconfig
9 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
10 pixmapdir       = $(datadir)/pixmaps
11 xsddir          = $(datadir)/openbox
12 userscriptdir   = $(datadir)/openbox
13
14 theme = bear2
15
16 AUTOMAKE_OPTIONS = subdir-objects foreign
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 INCLUDES = -I.
21
22 check_PROGRAMS = \
23         render/rendertest
24
25 lib_LTLIBRARIES = \
26         parser/libobparser.la \
27         render/libobrender.la
28
29 bin_PROGRAMS = \
30         openbox/openbox \
31         tools/kdetrayproxy/kdetrayproxy \
32         tools/themetoxml/themetoxml \
33         tools/gnome-panel-control/gnome-panel-control
34
35 ## render ##
36
37 render_rendertest_CPPFLAGS = \
38         $(PANGO_CFLAGS) \
39         $(GLIB_CFLAGS) \
40         -DG_LOG_DOMAIN=\"RenderTest\"
41 render_rendertest_LDADD = \
42         parser/libobparser.la \
43         render/libobrender.la \
44         $(GLIB_LIBS) \
45         $(PANGO_LIBS) \
46         $(XML_LIBS) \
47         $(X_LIBS)
48 render_rendertest_SOURCES = render/test.c
49
50 render_libobrender_la_CPPFLAGS = \
51         $(X_CFLAGS) \
52         $(GLIB_CFLAGS) \
53         $(XML_CFLAGS) \
54         $(PANGO_CFLAGS) \
55         -DG_LOG_DOMAIN=\"ObRender\" \
56         -DDEFAULT_THEME=\"$(theme)\"
57 render_libobrender_la_LDFLAGS = \
58         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
59 render_libobrender_la_LIBADD = \
60         parser/libobparser.la \
61         $(X_LIBS) \
62         $(PANGO_LIBS) \
63         $(GLIB_LIBS) \
64         $(XML_LIBS)
65 render_libobrender_la_SOURCES = \
66         gettext.h \
67         render/color.h \
68         render/color.c \
69         render/font.h \
70         render/font.c \
71         render/geom.h \
72         render/gradient.h \
73         render/gradient.c \
74         render/icon.h \
75         render/image.h \
76         render/image.c \
77         render/instance.h \
78         render/instance.c \
79         render/mask.h \
80         render/mask.c \
81         render/render.h \
82         render/render.c \
83         render/theme.h \
84         render/theme.c
85
86 ## parser ##
87
88 parser_libobparser_la_CPPFLAGS = \
89         $(GLIB_CFLAGS) \
90         $(XML_CFLAGS) \
91         -DG_LOG_DOMAIN=\"ObParser\" \
92         -DLOCALEDIR=\"$(localedir)\" \
93         -DDATADIR=\"$(datadir)\" \
94         -DCONFIGDIR=\"$(configdir)\"
95 parser_libobparser_la_LDFLAGS = \
96         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
97 parser_libobparser_la_LIBADD = \
98         $(GLIB_LIBS) \
99         $(XML_LIBS) 
100 parser_libobparser_la_SOURCES = \
101         parser/parse.h \
102         parser/parse.c
103
104 ## openbox ##
105
106 openbox_openbox_CPPFLAGS = \
107         $(X_CFLAGS) \
108         $(SM_CFLAGS) \
109         $(PANGO_CFLAGS) \
110         $(GLIB_CFLAGS) \
111         $(LIBSN_CFLAGS) \
112         $(XML_CFLAGS) \
113         -DLOCALEDIR=\"$(localedir)\" \
114         -DDATADIR=\"$(datadir)\" \
115         -DCONFIGDIR=\"$(configdir)\" \
116         -DG_LOG_DOMAIN=\"Openbox\"
117 openbox_openbox_LDADD = \
118         $(SM_LIBS) \
119         $(XINERAMA_LIBS) \
120         $(XKB_LIBS) \
121         $(XRANDR_LIBS) \
122         $(XSHAPE_LIBS) \
123         $(GLIB_LIBS) \
124         $(X_LIBS) \
125         $(LIBSN_LIBS) \
126         $(XML_LIBS) \
127         $(EFENCE_LIBS) \
128         $(LIBINTL) \
129         render/libobrender.la \
130         parser/libobparser.la
131 openbox_openbox_LDFLAGS = -export-dynamic
132 openbox_openbox_SOURCES = \
133         gettext.h \
134         openbox/action.c \
135         openbox/action.h \
136         openbox/client.c \
137         openbox/client.h \
138         openbox/client_list_menu.c \
139         openbox/client_list_combined_menu.c \
140         openbox/client_list_combined_menu.h \
141         openbox/client_menu.c \
142         openbox/client_menu.h \
143         openbox/config.c \
144         openbox/config.h \
145         openbox/debug.c \
146         openbox/debug.h \
147         openbox/dock.c \
148         openbox/dock.h \
149         openbox/event.c \
150         openbox/event.h \
151         openbox/extensions.c \
152         openbox/extensions.h \
153         openbox/focus.c \
154         openbox/focus.h \
155         openbox/frame.c \
156         openbox/frame.h \
157         openbox/framerender.c \
158         openbox/framerender.h \
159         openbox/geom.h \
160         openbox/grab.c \
161         openbox/grab.h \
162         openbox/group.c \
163         openbox/group.h \
164         openbox/keyboard.c \
165         openbox/keyboard.h \
166         openbox/keytree.c \
167         openbox/keytree.h \
168         openbox/mainloop.c \
169         openbox/mainloop.h \
170         openbox/menuframe.c \
171         openbox/menuframe.h \
172         openbox/menu.c \
173         openbox/menu.h \
174         openbox/misc.h \
175         openbox/mouse.c \
176         openbox/mouse.h \
177         openbox/moveresize.c \
178         openbox/moveresize.h \
179         openbox/mwm.h \
180         openbox/openbox.c \
181         openbox/openbox.h \
182         openbox/place.c \
183         openbox/place.h \
184         openbox/popup.c \
185         openbox/popup.h \
186         openbox/prop.c \
187         openbox/prop.h \
188         openbox/resist.c \
189         openbox/resist.h \
190         openbox/screen.c \
191         openbox/screen.h \
192         openbox/session.c \
193         openbox/session.h \
194         openbox/stacking.c \
195         openbox/stacking.h \
196         openbox/startupnotify.c \
197         openbox/startupnotify.h \
198         openbox/translate.c \
199         openbox/translate.h \
200         openbox/window.c \
201         openbox/window.h \
202         openbox/xerror.c \
203         openbox/xerror.h
204
205
206 ## kdetrayproxy ##
207
208 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
209         $(X_CFLAGS)
210 tools_kdetrayproxy_kdetrayproxy_LDADD = \
211         $(X_LIBS)
212 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
213         tools/kdetrayproxy/kdetrayproxy.c
214
215
216 ## themetoxml ##
217
218 tools_themetoxml_themetoxml_CPPFLAGS = \
219         $(X_CFLAGS) \
220         $(GLIB_CFLAGS) \
221         $(XML_CFLAGS)
222 tools_themetoxml_themetoxml_LDADD = \
223         $(X_LIBS) \
224         $(GLIB_LIBS) \
225         $(XML_LIBS)
226 tools_themetoxml_themetoxml_SOURCES = \
227         tools/themetoxml/themetoxml.c \
228         tools/themetoxml/themetoxml.h \
229         tools/themetoxml/rgb.h
230
231
232 ## gnome-panel-control ##
233
234 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
235         $(X_CFLAGS)
236 tools_gnome_panel_control_gnome_panel_control_LDADD = \
237         $(X_LIBS)
238 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
239         tools/gnome-panel-control/gnome-panel-control.c
240
241
242 ## themes ##
243
244 mikachu_themedir = $(themedir)/Mikachu/openbox-3
245 dist_mikachu_theme_DATA= \
246         themes/Mikachu/openbox-3/bullet.xbm \
247         themes/Mikachu/openbox-3/close.xbm \
248         themes/Mikachu/openbox-3/desk.xbm \
249         themes/Mikachu/openbox-3/iconify.xbm \
250         themes/Mikachu/openbox-3/max.xbm \
251         themes/Mikachu/openbox-3/themerc
252
253
254 natura_themedir = $(themedir)/Natura/openbox-3
255 dist_natura_theme_DATA= \
256         themes/Natura/openbox-3/close_hover.xbm \
257         themes/Natura/openbox-3/close.xbm \
258         themes/Natura/openbox-3/desk_toggled.xbm \
259         themes/Natura/openbox-3/desk.xbm \
260         themes/Natura/openbox-3/iconify_disabled.xbm \
261         themes/Natura/openbox-3/iconify_hover.xbm \
262         themes/Natura/openbox-3/iconify.xbm \
263         themes/Natura/openbox-3/max_disabled.xbm \
264         themes/Natura/openbox-3/max_hover.xbm \
265         themes/Natura/openbox-3/max_toggled.xbm \
266         themes/Natura/openbox-3/max.xbm \
267         themes/Natura/openbox-3/shade.xbm \
268         themes/Natura/openbox-3/themerc
269
270 artwizboxed_themedir = $(themedir)/artwiz-boxed/openbox-3
271 dist_artwizboxed_theme_DATA= \
272         themes/artwiz-boxed/openbox-3/bullet.xbm \
273         themes/artwiz-boxed/openbox-3/close.xbm \
274         themes/artwiz-boxed/openbox-3/desk_toggled.xbm \
275         themes/artwiz-boxed/openbox-3/desk.xbm \
276         themes/artwiz-boxed/openbox-3/iconify.xbm \
277         themes/artwiz-boxed/openbox-3/max_toggled.xbm \
278         themes/artwiz-boxed/openbox-3/max.xbm \
279         themes/artwiz-boxed/openbox-3/themerc
280  
281 bear2_themedir = $(themedir)/bear2/openbox-3
282 dist_bear2_theme_DATA= \
283         themes/bear2/openbox-3/close_pressed.xbm \
284         themes/bear2/openbox-3/close.xbm \
285         themes/bear2/openbox-3/desk_toggled.xbm \
286         themes/bear2/openbox-3/desk.xbm \
287         themes/bear2/openbox-3/iconify_disabled.xbm \
288         themes/bear2/openbox-3/iconify_pressed.xbm \
289         themes/bear2/openbox-3/iconify.xbm \
290         themes/bear2/openbox-3/max_disabled.xbm \
291         themes/bear2/openbox-3/max_pressed.xbm \
292         themes/bear2/openbox-3/max_toggled.xbm \
293         themes/bear2/openbox-3/max.xbm \
294         themes/bear2/openbox-3/shade_pressed.xbm \
295         themes/bear2/openbox-3/shade.xbm \
296         themes/bear2/openbox-3/themerc
297  
298 orang_themedir = $(themedir)/orang/openbox-3
299 dist_orang_theme_DATA= \
300         themes/orang/openbox-3/themerc
301
302 syscrash_themedir = $(themedir)/syscrash/openbox-3
303 dist_syscrash_theme_DATA= \
304         themes/syscrash/openbox-3/bullet.xbm \
305         themes/syscrash/openbox-3/close_disabled.xbm \
306         themes/syscrash/openbox-3/close.xbm \
307         themes/syscrash/openbox-3/desk_toggled.xbm \
308         themes/syscrash/openbox-3/desk.xbm \
309         themes/syscrash/openbox-3/iconify.xbm \
310         themes/syscrash/openbox-3/max_disabled.xbm \
311         themes/syscrash/openbox-3/max_pressed.xbm \
312         themes/syscrash/openbox-3/max_toggled.xbm \
313         themes/syscrash/openbox-3/max.xbm \
314         themes/syscrash/openbox-3/shade.xbm \
315         themes/syscrash/openbox-3/themerc
316
317 ## public headers ##
318
319 pubinclude_HEADERS = \
320         render/color.h \
321         render/font.h \
322         render/geom.h \
323         render/gradient.h \
324         render/image.h \
325         render/instance.h \
326         render/mask.h \
327         render/render.h \
328         render/theme.h \
329         parser/parse.h
330
331 nodist_pubinclude_HEADERS = \
332         version.h
333
334 nodist_pkgconfig_DATA = \
335         render/obrender-3.0.pc \
336         parser/obparser-3.0.pc
337
338 ## data ##
339
340 dist_pixmap_DATA = \
341         data/openbox.png
342
343 nodist_rc_DATA = \
344         data/rc.xml \
345         data/menu.xml
346
347 dist_xsd_DATA = \
348         data/rc.xsd \
349         data/menu.xsd
350
351 edit = $(SED) \
352         -e 's!@version\@!$(VERSION)!' \
353         -e 's!@xsddir\@!$(xsddir)!'
354
355 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
356         @echo make: creating $@
357         @rm -f $@
358         @mkdir data 2>/dev/null || true
359         @$(edit) $(srcdir)/data/rc.xml.in >$@
360
361 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
362         @echo make: creating $@
363         @rm -f $@
364         @mkdir data 2>/dev/null || true
365         @$(edit) $(srcdir)/data/menu.xml.in >$@
366
367 dist_userscript_DATA = \
368         tools/themeupdate/themeupdate.py
369
370 install-data-hook:
371         chmod +x $(DESTDIR)$(userscriptdir)/themeupdate.py
372
373 dist_desktopfiles_DATA = \
374         data/openbox.desktop
375
376 dist_noinst_DATA = \
377         version.h.in \
378         data/rc.xml.in \
379         data/menu.xml.in \
380         render/obrender-3.0.pc.in \
381         parser/obparser-3.0.pc.in
382
383 EXTRA_DIST = \
384         config.rpath \
385         mkinstalldirs \
386         CHANGELOG \
387         COMPLIANCE \
388         README \
389         COPYING \
390         AUTHORS
391
392 CLEANFILES = \
393         data/rc.xml \
394         data/menu.xml
395
396 #doc:
397 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
398
399 distclean-local:
400         for d in . m4 po render; do \
401                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
402                         rm -f "$$d/$$p"; \
403                 done \
404         done
405
406 .PHONY: doc