Update swedish translation.
[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
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 bin_SCRIPTS = \
35         tools/xdg-autostart/xdg-autostart
36
37 nodist_bin_SCRIPTS = \
38         data/xsession/openbox-session \
39         data/xsession/openbox-gnome-session \
40         data/xsession/openbox-kde-session
41
42 ## render ##
43
44 render_rendertest_CPPFLAGS = \
45         $(PANGO_CFLAGS) \
46         $(XFT_CFLAGS) \
47         $(GLIB_CFLAGS) \
48         -DG_LOG_DOMAIN=\"RenderTest\"
49 render_rendertest_LDADD = \
50         parser/libobparser.la \
51         render/libobrender.la \
52         $(GLIB_LIBS) \
53         $(PANGO_LIBS) \
54         $(XFT_LIBS) \
55         $(XML_LIBS) \
56         $(X_LIBS)
57 render_rendertest_SOURCES = render/test.c
58
59 render_libobrender_la_CPPFLAGS = \
60         $(X_CFLAGS) \
61         $(GLIB_CFLAGS) \
62         $(XML_CFLAGS) \
63         $(PANGO_CFLAGS) \
64         $(XFT_CFLAGS) \
65         -DG_LOG_DOMAIN=\"ObRender\" \
66         -DDEFAULT_THEME=\"$(theme)\"
67 render_libobrender_la_LDFLAGS = \
68         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
69 render_libobrender_la_LIBADD = \
70         parser/libobparser.la \
71         $(X_LIBS) \
72         $(PANGO_LIBS) \
73         $(XFT_LIBS) \
74         $(GLIB_LIBS) \
75         $(XML_LIBS)
76 render_libobrender_la_SOURCES = \
77         gettext.h \
78         render/color.h \
79         render/color.c \
80         render/font.h \
81         render/font.c \
82         render/geom.h \
83         render/gradient.h \
84         render/gradient.c \
85         render/icon.h \
86         render/image.h \
87         render/image.c \
88         render/imagecache.h \
89         render/imagecache.c \
90         render/instance.h \
91         render/instance.c \
92         render/mask.h \
93         render/mask.c \
94         render/render.h \
95         render/render.c \
96         render/theme.h \
97         render/theme.c
98
99 ## parser ##
100
101 parser_libobparser_la_CPPFLAGS = \
102         $(GLIB_CFLAGS) \
103         $(XML_CFLAGS) \
104         -DG_LOG_DOMAIN=\"ObParser\" \
105         -DLOCALEDIR=\"$(localedir)\" \
106         -DDATADIR=\"$(datadir)\" \
107         -DCONFIGDIR=\"$(configdir)\"
108 parser_libobparser_la_LDFLAGS = \
109         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
110 parser_libobparser_la_LIBADD = \
111         $(GLIB_LIBS) \
112         $(XML_LIBS) 
113 parser_libobparser_la_SOURCES = \
114         parser/parse.h \
115         parser/parse.c
116
117 ## openbox ##
118
119 openbox_openbox_CPPFLAGS = \
120         $(SM_CFLAGS) \
121         $(XINERAMA_CFLAGS) \
122         $(XKB_CFLAGS) \
123         $(XRANDR_CFLAGS) \
124         $(XSHAPE_CFLAGS) \
125         $(XSYNC_CFLAGS) \
126         $(X_CFLAGS) \
127         $(XCURSOR_CFLAGS) \
128         $(SM_CFLAGS) \
129         $(PANGO_CFLAGS) \
130         $(GLIB_CFLAGS) \
131         $(LIBSN_CFLAGS) \
132         $(XML_CFLAGS) \
133         -DLOCALEDIR=\"$(localedir)\" \
134         -DDATADIR=\"$(datadir)\" \
135         -DCONFIGDIR=\"$(configdir)\" \
136         -DG_LOG_DOMAIN=\"Openbox\"
137 openbox_openbox_LDADD = \
138         $(SM_LIBS) \
139         $(XINERAMA_LIBS) \
140         $(XKB_LIBS) \
141         $(XRANDR_LIBS) \
142         $(XSHAPE_LIBS) \
143         $(XSYNC_LIBS) \
144         $(GLIB_LIBS) \
145         $(X_LIBS) \
146         $(XCURSOR_LIBS) \
147         $(LIBSN_LIBS) \
148         $(XML_LIBS) \
149         $(EFENCE_LIBS) \
150         $(LIBINTL) \
151         render/libobrender.la \
152         parser/libobparser.la
153 openbox_openbox_LDFLAGS = -export-dynamic
154 openbox_openbox_SOURCES = \
155         gettext.h \
156         openbox/actions/all.c \
157         openbox/actions/all.h \
158         openbox/actions/addremovedesktop.c \
159         openbox/actions/breakchroot.c \
160         openbox/actions/close.c \
161         openbox/actions/cyclewindows.c \
162         openbox/actions/debug.c \
163         openbox/actions/decorations.c \
164         openbox/actions/desktop.c \
165         openbox/actions/dockautohide.c \
166         openbox/actions/directionalwindows.c \
167         openbox/actions/execute.c \
168         openbox/actions/exit.c \
169         openbox/actions/focus.c \
170         openbox/actions/focustobottom.c \
171         openbox/actions/fullscreen.c \
172         openbox/actions/growtoedge.c \
173         openbox/actions/iconify.c \
174         openbox/actions/if.c \
175         openbox/actions/kill.c \
176         openbox/actions/layer.c \
177         openbox/actions/lower.c \
178         openbox/actions/maximize.c \
179         openbox/actions/move.c \
180         openbox/actions/moverelative.c \
181         openbox/actions/moveresizeto.c \
182         openbox/actions/movetoedge.c \
183         openbox/actions/omnipresent.c \
184         openbox/actions/raise.c \
185         openbox/actions/raiselower.c \
186         openbox/actions/reconfigure.c \
187         openbox/actions/resize.c \
188         openbox/actions/resizerelative.c \
189         openbox/actions/restart.c \
190         openbox/actions/shade.c \
191         openbox/actions/showdesktop.c \
192         openbox/actions/showmenu.c \
193         openbox/actions/unfocus.c \
194         openbox/actions.c \
195         openbox/actions.h \
196         openbox/client.c \
197         openbox/client.h \
198         openbox/client_list_menu.c \
199         openbox/client_list_menu.h \
200         openbox/client_list_combined_menu.c \
201         openbox/client_list_combined_menu.h \
202         openbox/client_menu.c \
203         openbox/client_menu.h \
204         openbox/config.c \
205         openbox/config.h \
206         openbox/debug.c \
207         openbox/debug.h \
208         openbox/dock.c \
209         openbox/dock.h \
210         openbox/event.c \
211         openbox/event.h \
212         openbox/extensions.c \
213         openbox/extensions.h \
214         openbox/focus.c \
215         openbox/focus.h \
216         openbox/focus_cycle.c \
217         openbox/focus_cycle.h \
218         openbox/focus_cycle_indicator.c \
219         openbox/focus_cycle_indicator.h \
220         openbox/focus_cycle_popup.c \
221         openbox/focus_cycle_popup.h \
222         openbox/frame.c \
223         openbox/frame.h \
224         openbox/framerender.c \
225         openbox/framerender.h \
226         openbox/geom.h \
227         openbox/grab.c \
228         openbox/grab.h \
229         openbox/group.c \
230         openbox/group.h \
231         openbox/keyboard.c \
232         openbox/keyboard.h \
233         openbox/keytree.c \
234         openbox/keytree.h \
235         openbox/mainloop.c \
236         openbox/mainloop.h \
237         openbox/menuframe.c \
238         openbox/menuframe.h \
239         openbox/menu.c \
240         openbox/menu.h \
241         openbox/misc.h \
242         openbox/modkeys.c \
243         openbox/modkeys.h \
244         openbox/mouse.c \
245         openbox/mouse.h \
246         openbox/moveresize.c \
247         openbox/moveresize.h \
248         openbox/mwm.h \
249         openbox/openbox.c \
250         openbox/openbox.h \
251         openbox/ping.c \
252         openbox/ping.h \
253         openbox/place.c \
254         openbox/place.h \
255         openbox/prompt.c \
256         openbox/prompt.h \
257         openbox/popup.c \
258         openbox/popup.h \
259         openbox/prop.c \
260         openbox/prop.h \
261         openbox/resist.c \
262         openbox/resist.h \
263         openbox/screen.c \
264         openbox/screen.h \
265         openbox/session.c \
266         openbox/session.h \
267         openbox/stacking.c \
268         openbox/stacking.h \
269         openbox/startupnotify.c \
270         openbox/startupnotify.h \
271         openbox/translate.c \
272         openbox/translate.h \
273         openbox/window.c \
274         openbox/window.h \
275         openbox/xerror.c \
276         openbox/xerror.h
277
278
279 ## gnome-panel-control ##
280
281 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
282         $(X_CFLAGS)
283 tools_gnome_panel_control_gnome_panel_control_LDADD = \
284         $(X_LIBS)
285 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
286         tools/gnome-panel-control/gnome-panel-control.c
287
288
289 ## default button masks ##
290 dist_docxbm_DATA = \
291         data/xbm/bullet.xbm \
292         data/xbm/close.xbm \
293         data/xbm/desk_toggled.xbm \
294         data/xbm/desk.xbm \
295         data/xbm/iconify.xbm \
296         data/xbm/max_toggled.xbm \
297         data/xbm/max.xbm \
298         data/xbm/shade_toggled.xbm \
299         data/xbm/shade.xbm
300
301
302 ## themes ##
303
304 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
305 dist_clearlooks_theme_DATA= \
306         themes/Clearlooks/openbox-3/themerc
307
308 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
309 dist_clearlooks34_theme_DATA= \
310         themes/Clearlooks-3.4/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         config.rpath
497
498 # make clean doesn't delete these for some reason, even though they are
499 # built by make
500 CLEANFILES = \
501         doc/openbox.1 \
502         doc/openbox-session.1 \
503         doc/openbox-gnome-session.1 \
504         doc/openbox-kde-session.1 \
505         data/xsession/openbox-session \
506         data/xsession/openbox-gnome-session \
507         data/xsession/openbox-kde-session \
508         data/xsession/openbox.desktop \
509         data/xsession/openbox-gnome.desktop \
510         data/xsession/openbox-kde.desktop
511
512 #doc:
513 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
514
515 distclean-local:
516         for d in . m4 po render; do \
517                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
518                         rm -f "$$d/$$p"; \
519                 done \
520         done
521
522 .PHONY: doc