fix the menu's command for urxvt
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 docxbmdir       = $(docdir)/xbm
4 themedir        = $(datadir)/themes
5 localedir       = $(datadir)/locale
6 configdir       = $(sysconfdir)/xdg
7 rcdir           = $(configdir)/openbox
8 xsessionsdir    = $(datadir)/xsessions
9 gnomewmfilesdir = $(datadir)/gnome/wm-properties
10 pkgconfigdir    = $(libdir)/pkgconfig
11 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
12 pixmapdir       = $(datadir)/pixmaps
13 xsddir          = $(datadir)/openbox
14 secretbindir    = $(libdir)/openbox
15
16 theme = Clearlooks
17
18 AUTOMAKE_OPTIONS = subdir-objects foreign
19
20 ACLOCAL_AMFLAGS = -I m4
21
22 INCLUDES = -I.
23
24 check_PROGRAMS = \
25         render/rendertest
26
27 lib_LTLIBRARIES = \
28         parser/libobparser.la \
29         render/libobrender.la
30
31 bin_PROGRAMS = \
32         openbox/openbox \
33         tools/gnome-panel-control/gnome-panel-control
34
35 dist_secretbin_SCRIPTS = \
36         tools/xdg-autostart/xdg-autostart
37
38 nodist_bin_SCRIPTS = \
39         data/xsession/openbox-session \
40         data/xsession/openbox-gnome-session \
41         data/xsession/openbox-kde-session
42
43 ## render ##
44
45 render_rendertest_CPPFLAGS = \
46         $(PANGO_CFLAGS) \
47         $(XFT_CFLAGS) \
48         $(GLIB_CFLAGS) \
49         -DG_LOG_DOMAIN=\"RenderTest\"
50 render_rendertest_LDADD = \
51         parser/libobparser.la \
52         render/libobrender.la \
53         $(GLIB_LIBS) \
54         $(PANGO_LIBS) \
55         $(XFT_LIBS) \
56         $(XML_LIBS) \
57         $(X_LIBS)
58 render_rendertest_SOURCES = render/test.c
59
60 render_libobrender_la_CPPFLAGS = \
61         $(X_CFLAGS) \
62         $(GLIB_CFLAGS) \
63         $(XML_CFLAGS) \
64         $(PANGO_CFLAGS) \
65         $(XFT_CFLAGS) \
66         -DG_LOG_DOMAIN=\"ObRender\" \
67         -DDEFAULT_THEME=\"$(theme)\"
68 render_libobrender_la_LDFLAGS = \
69         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
70 render_libobrender_la_LIBADD = \
71         parser/libobparser.la \
72         $(X_LIBS) \
73         $(PANGO_LIBS) \
74         $(XFT_LIBS) \
75         $(GLIB_LIBS) \
76         $(XML_LIBS)
77 render_libobrender_la_SOURCES = \
78         gettext.h \
79         render/color.h \
80         render/color.c \
81         render/font.h \
82         render/font.c \
83         render/geom.h \
84         render/gradient.h \
85         render/gradient.c \
86         render/icon.h \
87         render/image.h \
88         render/image.c \
89         render/imagecache.h \
90         render/imagecache.c \
91         render/instance.h \
92         render/instance.c \
93         render/mask.h \
94         render/mask.c \
95         render/render.h \
96         render/render.c \
97         render/theme.h \
98         render/theme.c
99
100 ## parser ##
101
102 parser_libobparser_la_CPPFLAGS = \
103         $(GLIB_CFLAGS) \
104         $(XML_CFLAGS) \
105         -DG_LOG_DOMAIN=\"ObParser\" \
106         -DLOCALEDIR=\"$(localedir)\" \
107         -DDATADIR=\"$(datadir)\" \
108         -DCONFIGDIR=\"$(configdir)\"
109 parser_libobparser_la_LDFLAGS = \
110         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
111 parser_libobparser_la_LIBADD = \
112         $(GLIB_LIBS) \
113         $(XML_LIBS) 
114 parser_libobparser_la_SOURCES = \
115         parser/parse.h \
116         parser/parse.c
117
118 ## openbox ##
119
120 openbox_openbox_CPPFLAGS = \
121         $(SM_CFLAGS) \
122         $(XINERAMA_CFLAGS) \
123         $(XKB_CFLAGS) \
124         $(XRANDR_CFLAGS) \
125         $(XSHAPE_CFLAGS) \
126         $(XSYNC_CFLAGS) \
127         $(X_CFLAGS) \
128         $(XCURSOR_CFLAGS) \
129         $(SM_CFLAGS) \
130         $(PANGO_CFLAGS) \
131         $(GLIB_CFLAGS) \
132         $(LIBSN_CFLAGS) \
133         $(XML_CFLAGS) \
134         -DLOCALEDIR=\"$(localedir)\" \
135         -DDATADIR=\"$(datadir)\" \
136         -DCONFIGDIR=\"$(configdir)\" \
137         -DG_LOG_DOMAIN=\"Openbox\"
138 openbox_openbox_LDADD = \
139         $(SM_LIBS) \
140         $(XINERAMA_LIBS) \
141         $(XKB_LIBS) \
142         $(XRANDR_LIBS) \
143         $(XSHAPE_LIBS) \
144         $(XSYNC_LIBS) \
145         $(GLIB_LIBS) \
146         $(X_LIBS) \
147         $(XCURSOR_LIBS) \
148         $(LIBSN_LIBS) \
149         $(XML_LIBS) \
150         $(EFENCE_LIBS) \
151         $(LIBINTL) \
152         render/libobrender.la \
153         parser/libobparser.la
154 openbox_openbox_LDFLAGS = -export-dynamic
155 openbox_openbox_SOURCES = \
156         gettext.h \
157         openbox/actions/all.c \
158         openbox/actions/all.h \
159         openbox/actions/addremovedesktop.c \
160         openbox/actions/breakchroot.c \
161         openbox/actions/close.c \
162         openbox/actions/cyclewindows.c \
163         openbox/actions/debug.c \
164         openbox/actions/decorations.c \
165         openbox/actions/desktop.c \
166         openbox/actions/dockautohide.c \
167         openbox/actions/directionalwindows.c \
168         openbox/actions/execute.c \
169         openbox/actions/exit.c \
170         openbox/actions/focus.c \
171         openbox/actions/focustobottom.c \
172         openbox/actions/fullscreen.c \
173         openbox/actions/growtoedge.c \
174         openbox/actions/iconify.c \
175         openbox/actions/if.c \
176         openbox/actions/kill.c \
177         openbox/actions/layer.c \
178         openbox/actions/lower.c \
179         openbox/actions/maximize.c \
180         openbox/actions/move.c \
181         openbox/actions/moverelative.c \
182         openbox/actions/moveresizeto.c \
183         openbox/actions/movetoedge.c \
184         openbox/actions/omnipresent.c \
185         openbox/actions/raise.c \
186         openbox/actions/raiselower.c \
187         openbox/actions/reconfigure.c \
188         openbox/actions/resize.c \
189         openbox/actions/resizerelative.c \
190         openbox/actions/restart.c \
191         openbox/actions/shade.c \
192         openbox/actions/showdesktop.c \
193         openbox/actions/showmenu.c \
194         openbox/actions/unfocus.c \
195         openbox/actions.c \
196         openbox/actions.h \
197         openbox/client.c \
198         openbox/client.h \
199         openbox/client_list_menu.c \
200         openbox/client_list_menu.h \
201         openbox/client_list_combined_menu.c \
202         openbox/client_list_combined_menu.h \
203         openbox/client_menu.c \
204         openbox/client_menu.h \
205         openbox/config.c \
206         openbox/config.h \
207         openbox/debug.c \
208         openbox/debug.h \
209         openbox/dock.c \
210         openbox/dock.h \
211         openbox/event.c \
212         openbox/event.h \
213         openbox/extensions.c \
214         openbox/extensions.h \
215         openbox/focus.c \
216         openbox/focus.h \
217         openbox/focus_cycle.c \
218         openbox/focus_cycle.h \
219         openbox/focus_cycle_indicator.c \
220         openbox/focus_cycle_indicator.h \
221         openbox/focus_cycle_popup.c \
222         openbox/focus_cycle_popup.h \
223         openbox/frame.c \
224         openbox/frame.h \
225         openbox/framerender.c \
226         openbox/framerender.h \
227         openbox/geom.h \
228         openbox/grab.c \
229         openbox/grab.h \
230         openbox/group.c \
231         openbox/group.h \
232         openbox/keyboard.c \
233         openbox/keyboard.h \
234         openbox/keytree.c \
235         openbox/keytree.h \
236         openbox/mainloop.c \
237         openbox/mainloop.h \
238         openbox/menuframe.c \
239         openbox/menuframe.h \
240         openbox/menu.c \
241         openbox/menu.h \
242         openbox/misc.h \
243         openbox/modkeys.c \
244         openbox/modkeys.h \
245         openbox/mouse.c \
246         openbox/mouse.h \
247         openbox/moveresize.c \
248         openbox/moveresize.h \
249         openbox/mwm.h \
250         openbox/openbox.c \
251         openbox/openbox.h \
252         openbox/ping.c \
253         openbox/ping.h \
254         openbox/place.c \
255         openbox/place.h \
256         openbox/prompt.c \
257         openbox/prompt.h \
258         openbox/popup.c \
259         openbox/popup.h \
260         openbox/prop.c \
261         openbox/prop.h \
262         openbox/resist.c \
263         openbox/resist.h \
264         openbox/screen.c \
265         openbox/screen.h \
266         openbox/session.c \
267         openbox/session.h \
268         openbox/stacking.c \
269         openbox/stacking.h \
270         openbox/startupnotify.c \
271         openbox/startupnotify.h \
272         openbox/translate.c \
273         openbox/translate.h \
274         openbox/window.c \
275         openbox/window.h \
276         openbox/xerror.c \
277         openbox/xerror.h
278
279
280 ## gnome-panel-control ##
281
282 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
283         $(X_CFLAGS)
284 tools_gnome_panel_control_gnome_panel_control_LDADD = \
285         $(X_LIBS)
286 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
287         tools/gnome-panel-control/gnome-panel-control.c
288
289
290 ## default button masks ##
291 dist_docxbm_DATA = \
292         data/xbm/bullet.xbm \
293         data/xbm/close.xbm \
294         data/xbm/desk_toggled.xbm \
295         data/xbm/desk.xbm \
296         data/xbm/iconify.xbm \
297         data/xbm/max_toggled.xbm \
298         data/xbm/max.xbm \
299         data/xbm/shade_toggled.xbm \
300         data/xbm/shade.xbm
301
302
303 ## themes ##
304
305 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
306 dist_clearlooks_theme_DATA= \
307         themes/Clearlooks/openbox-3/themerc
308
309 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
310 dist_clearlooks34_theme_DATA= \
311         themes/Clearlooks-3.4/openbox-3/themerc
312
313 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
314 dist_clearlooksolive_theme_DATA= \
315         themes/Clearlooks-Olive/openbox-3/themerc
316
317 mikachu_themedir = $(themedir)/Mikachu/openbox-3
318 dist_mikachu_theme_DATA= \
319         themes/Mikachu/openbox-3/bullet.xbm \
320         themes/Mikachu/openbox-3/close.xbm \
321         themes/Mikachu/openbox-3/desk.xbm \
322         themes/Mikachu/openbox-3/iconify.xbm \
323         themes/Mikachu/openbox-3/max.xbm \
324         themes/Mikachu/openbox-3/themerc
325
326
327 natura_themedir = $(themedir)/Natura/openbox-3
328 dist_natura_theme_DATA= \
329         themes/Natura/openbox-3/close_hover.xbm \
330         themes/Natura/openbox-3/close.xbm \
331         themes/Natura/openbox-3/desk_toggled.xbm \
332         themes/Natura/openbox-3/desk_hover.xbm \
333         themes/Natura/openbox-3/desk.xbm \
334         themes/Natura/openbox-3/iconify_hover.xbm \
335         themes/Natura/openbox-3/iconify.xbm \
336         themes/Natura/openbox-3/max_hover.xbm \
337         themes/Natura/openbox-3/max_toggled.xbm \
338         themes/Natura/openbox-3/max.xbm \
339         themes/Natura/openbox-3/shade.xbm \
340         themes/Natura/openbox-3/shade_hover.xbm \
341         themes/Natura/openbox-3/themerc
342
343 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
344 dist_artwizboxed_theme_DATA= \
345         themes/Artwiz-boxed/openbox-3/themerc
346
347 bear2_themedir = $(themedir)/Bear2/openbox-3
348 dist_bear2_theme_DATA= \
349         themes/Bear2/openbox-3/close_pressed.xbm \
350         themes/Bear2/openbox-3/close.xbm \
351         themes/Bear2/openbox-3/desk_toggled.xbm \
352         themes/Bear2/openbox-3/desk.xbm \
353         themes/Bear2/openbox-3/iconify_pressed.xbm \
354         themes/Bear2/openbox-3/iconify.xbm \
355         themes/Bear2/openbox-3/max_pressed.xbm \
356         themes/Bear2/openbox-3/max_toggled.xbm \
357         themes/Bear2/openbox-3/max.xbm \
358         themes/Bear2/openbox-3/shade_pressed.xbm \
359         themes/Bear2/openbox-3/shade.xbm \
360         themes/Bear2/openbox-3/themerc
361
362 orang_themedir = $(themedir)/Orang/openbox-3
363 dist_orang_theme_DATA= \
364         themes/Orang/openbox-3/themerc
365
366 onyx_themedir = $(themedir)/Onyx/openbox-3
367 dist_onyx_theme_DATA= \
368         themes/Onyx/openbox-3/themerc
369
370 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
371 dist_onyxcitrus_theme_DATA= \
372         themes/Onyx-Citrus/openbox-3/themerc
373
374 syscrash_themedir = $(themedir)/Syscrash/openbox-3
375 dist_syscrash_theme_DATA= \
376         themes/Syscrash/openbox-3/max_disabled.xbm \
377         themes/Syscrash/openbox-3/max_pressed.xbm \
378         themes/Syscrash/openbox-3/max_toggled.xbm \
379         themes/Syscrash/openbox-3/max.xbm \
380         themes/Syscrash/openbox-3/themerc
381
382 ## public headers ##
383
384 pubinclude_HEADERS = \
385         render/color.h \
386         render/font.h \
387         render/geom.h \
388         render/gradient.h \
389         render/image.h \
390         render/instance.h \
391         render/mask.h \
392         render/render.h \
393         render/theme.h \
394         parser/parse.h
395
396 nodist_pubinclude_HEADERS = \
397         version.h
398
399 nodist_pkgconfig_DATA = \
400         render/obrender-3.0.pc \
401         parser/obparser-3.0.pc
402
403 ## data ##
404
405 dist_pixmap_DATA = \
406         data/openbox.png
407
408 nodist_rc_DATA = \
409         data/autostart.sh
410
411 dist_rc_DATA = \
412         data/rc.xml \
413         data/menu.xml
414
415 edit = $(SED) \
416         -e 's!@version\@!$(VERSION)!' \
417         -e 's!@configdir\@!$(configdir)!' \
418         -e 's!@secretbindir\@!$(secretbindir)!' \
419         -e 's!@bindir\@!$(bindir)!'
420
421 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
422         @echo make: creating $@
423         @$(edit) $< >$@
424
425 %.desktop: %.desktop.in Makefile
426         @echo make: creating $@
427         @$(edit) $< >$@ 
428
429 %-session: %-session.in Makefile
430         @echo make: creating $@
431         @$(edit) $< >$@ 
432
433 %.1.in: %.1.sgml
434         @echo make: creating $@
435         @docbook-to-man $< >$@
436
437 %.1: %.1.in Makefile
438         @echo make: creating $@
439         @$(edit) $< >$@ 
440
441 dist_gnomewmfiles_DATA = \
442         data/gnome-wm-properties/openbox.desktop
443
444 nodist_xsessions_DATA = \
445         data/xsession/openbox.desktop \
446         data/xsession/openbox-gnome.desktop \
447         data/xsession/openbox-kde.desktop
448
449 dist_noinst_DATA = \
450         version.h.in \
451         data/autostart.sh.in \
452         data/rc.xsd \
453         data/menu.xsd \
454         data/xsession/openbox.desktop.in \
455         data/xsession/openbox-gnome.desktop.in \
456         data/xsession/openbox-kde.desktop.in \
457         data/xsession/openbox-session.in \
458         data/xsession/openbox-gnome-session.in \
459         data/xsession/openbox-kde-session.in \
460         doc/openbox.1.sgml \
461         doc/openbox.1.in \
462         doc/openbox-session.1.sgml \
463         doc/openbox-session.1.in \
464         doc/openbox-gnome-session.1.sgml \
465         doc/openbox-gnome-session.1.in \
466         doc/openbox-kde-session.1.sgml \
467         doc/openbox-kde-session.1.in \
468         render/obrender-3.0.pc.in \
469         parser/obparser-3.0.pc.in \
470         tools/themeupdate/themeupdate.py \
471         tests/hideshow.py \
472         tests/Makefile \
473         tests/aspect.c \
474         tests/fullscreen.c \
475         tests/grav.c \
476         tests/grouptran.c \
477         tests/icons.c \
478         tests/modal2.c \
479         tests/modal3.c \
480         tests/modal.c \
481         tests/noresize.c \
482         tests/override.c \
483         tests/positioned.c \
484         tests/strut.c \
485         tests/title.c \
486         tests/urgent.c
487
488 dist_doc_DATA = \
489         COMPLIANCE \
490         README \
491         AUTHORS \
492         CHANGELOG \
493         COPYING \
494         data/rc.xsd \
495         data/menu.xsd \
496         doc/rc-mouse-focus.xml
497
498 nodist_man_MANS = \
499         doc/openbox.1 \
500         doc/openbox-session.1 \
501         doc/openbox-gnome-session.1 \
502         doc/openbox-kde-session.1
503
504 EXTRA_DIST = \
505         config.rpath
506
507 # make clean doesn't delete these for some reason, even though they are
508 # built by make
509 CLEANFILES = \
510         doc/openbox.1 \
511         doc/openbox-session.1 \
512         doc/openbox-gnome-session.1 \
513         doc/openbox-kde-session.1 \
514         data/xsession/openbox-session \
515         data/xsession/openbox-gnome-session \
516         data/xsession/openbox-kde-session \
517         data/xsession/openbox.desktop \
518         data/xsession/openbox-gnome.desktop \
519         data/xsession/openbox-kde.desktop
520
521 #doc:
522 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
523
524 distclean-local:
525         for d in . m4 po render; do \
526                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
527                         rm -f "$$d/$$p"; \
528                 done \
529         done
530
531 .PHONY: doc