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