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