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