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