]> icculus.org git repositories - mikachu/openbox.git/blob - Makefile.am
add estonian translation and rename italian 'it'
[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 nodist_bin_SCRIPTS = \
35         data/xsession/openbox-session \
36         data/xsession/openbox-gnome-session \
37         data/xsession/openbox-kde-session
38
39 noinst_PROGRAMS = \
40         tools/themetoxml/themetoxml
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/instance.h \
89         render/instance.c \
90         render/mask.h \
91         render/mask.c \
92         render/render.h \
93         render/render.c \
94         render/theme.h \
95         render/theme.c
96
97 ## parser ##
98
99 parser_libobparser_la_CPPFLAGS = \
100         $(GLIB_CFLAGS) \
101         $(XML_CFLAGS) \
102         -DG_LOG_DOMAIN=\"ObParser\" \
103         -DLOCALEDIR=\"$(localedir)\" \
104         -DDATADIR=\"$(datadir)\" \
105         -DCONFIGDIR=\"$(configdir)\"
106 parser_libobparser_la_LDFLAGS = \
107         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
108 parser_libobparser_la_LIBADD = \
109         $(GLIB_LIBS) \
110         $(XML_LIBS) 
111 parser_libobparser_la_SOURCES = \
112         parser/parse.h \
113         parser/parse.c
114
115 ## openbox ##
116
117 openbox_openbox_CPPFLAGS = \
118         $(SM_CFLAGS) \
119         $(XINERAMA_CFLAGS) \
120         $(XKB_CFLAGS) \
121         $(XRANDR_CFLAGS) \
122         $(XSHAPE_CFLAGS) \
123         $(XSYNC_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         $(X_LIBS) \
144         $(XCURSOR_LIBS) \
145         $(LIBSN_LIBS) \
146         $(XML_LIBS) \
147         $(EFENCE_LIBS) \
148         $(LIBINTL) \
149         render/libobrender.la \
150         parser/libobparser.la
151 openbox_openbox_LDFLAGS = -export-dynamic
152 openbox_openbox_SOURCES = \
153         gettext.h \
154         openbox/action.c \
155         openbox/action.h \
156         openbox/client.c \
157         openbox/client.h \
158         openbox/client_list_menu.c \
159         openbox/client_list_menu.h \
160         openbox/client_list_combined_menu.c \
161         openbox/client_list_combined_menu.h \
162         openbox/client_menu.c \
163         openbox/client_menu.h \
164         openbox/config.c \
165         openbox/config.h \
166         openbox/debug.c \
167         openbox/debug.h \
168         openbox/dock.c \
169         openbox/dock.h \
170         openbox/event.c \
171         openbox/event.h \
172         openbox/extensions.c \
173         openbox/extensions.h \
174         openbox/focus.c \
175         openbox/focus.h \
176         openbox/focus_cycle.c \
177         openbox/focus_cycle.h \
178         openbox/focus_cycle_indicator.c \
179         openbox/focus_cycle_indicator.h \
180         openbox/focus_cycle_popup.c \
181         openbox/focus_cycle_popup.h \
182         openbox/frame.c \
183         openbox/frame.h \
184         openbox/framerender.c \
185         openbox/framerender.h \
186         openbox/geom.h \
187         openbox/grab.c \
188         openbox/grab.h \
189         openbox/group.c \
190         openbox/group.h \
191         openbox/keyboard.c \
192         openbox/keyboard.h \
193         openbox/keytree.c \
194         openbox/keytree.h \
195         openbox/mainloop.c \
196         openbox/mainloop.h \
197         openbox/menuframe.c \
198         openbox/menuframe.h \
199         openbox/menu.c \
200         openbox/menu.h \
201         openbox/misc.h \
202         openbox/modkeys.c \
203         openbox/modkeys.h \
204         openbox/mouse.c \
205         openbox/mouse.h \
206         openbox/moveresize.c \
207         openbox/moveresize.h \
208         openbox/mwm.h \
209         openbox/openbox.c \
210         openbox/openbox.h \
211         openbox/place.c \
212         openbox/place.h \
213         openbox/popup.c \
214         openbox/popup.h \
215         openbox/prop.c \
216         openbox/prop.h \
217         openbox/propwin.c \
218         openbox/propwin.h \
219         openbox/resist.c \
220         openbox/resist.h \
221         openbox/screen.c \
222         openbox/screen.h \
223         openbox/session.c \
224         openbox/session.h \
225         openbox/stacking.c \
226         openbox/stacking.h \
227         openbox/startupnotify.c \
228         openbox/startupnotify.h \
229         openbox/translate.c \
230         openbox/translate.h \
231         openbox/window.c \
232         openbox/window.h \
233         openbox/xerror.c \
234         openbox/xerror.h
235
236
237 ## themetoxml ##
238
239 tools_themetoxml_themetoxml_CPPFLAGS = \
240         $(X_CFLAGS) \
241         $(GLIB_CFLAGS) \
242         $(XML_CFLAGS)
243 tools_themetoxml_themetoxml_LDADD = \
244         $(X_LIBS) \
245         $(GLIB_LIBS) \
246         $(XML_LIBS)
247 tools_themetoxml_themetoxml_SOURCES = \
248         tools/themetoxml/themetoxml.c \
249         tools/themetoxml/rgb.h
250
251
252 ## gnome-panel-control ##
253
254 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
255         $(X_CFLAGS)
256 tools_gnome_panel_control_gnome_panel_control_LDADD = \
257         $(X_LIBS)
258 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
259         tools/gnome-panel-control/gnome-panel-control.c
260
261
262 ## default button masks ##
263 dist_docxbm_DATA = \
264         data/xbm/bullet.xbm \
265         data/xbm/close.xbm \
266         data/xbm/desk_toggled.xbm \
267         data/xbm/desk.xbm \
268         data/xbm/iconify.xbm \
269         data/xbm/max_toggled.xbm \
270         data/xbm/max.xbm \
271         data/xbm/shade_toggled.xbm \
272         data/xbm/shade.xbm
273
274
275 ## themes ##
276
277 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
278 dist_clearlooks_theme_DATA= \
279         themes/Clearlooks/openbox-3/themerc.xml
280
281 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
282 dist_clearlooksolive_theme_DATA= \
283         themes/Clearlooks-Olive/openbox-3/themerc.xml
284
285 mikachu_themedir = $(themedir)/Mikachu/openbox-3
286 dist_mikachu_theme_DATA= \
287         themes/Mikachu/openbox-3/bullet.xbm \
288         themes/Mikachu/openbox-3/close.xbm \
289         themes/Mikachu/openbox-3/desk.xbm \
290         themes/Mikachu/openbox-3/iconify.xbm \
291         themes/Mikachu/openbox-3/max.xbm \
292         themes/Mikachu/openbox-3/themerc.xml
293
294
295 natura_themedir = $(themedir)/Natura/openbox-3
296 dist_natura_theme_DATA= \
297         themes/Natura/openbox-3/close_hover.xbm \
298         themes/Natura/openbox-3/close.xbm \
299         themes/Natura/openbox-3/desk_toggled.xbm \
300         themes/Natura/openbox-3/desk_hover.xbm \
301         themes/Natura/openbox-3/desk.xbm \
302         themes/Natura/openbox-3/iconify_hover.xbm \
303         themes/Natura/openbox-3/iconify.xbm \
304         themes/Natura/openbox-3/max_hover.xbm \
305         themes/Natura/openbox-3/max_toggled.xbm \
306         themes/Natura/openbox-3/max.xbm \
307         themes/Natura/openbox-3/shade.xbm \
308         themes/Natura/openbox-3/shade_hover.xbm \
309         themes/Natura/openbox-3/themerc.xml
310
311 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
312 dist_artwizboxed_theme_DATA= \
313         themes/Artwiz-boxed/openbox-3/themerc.xml
314
315 bear2_themedir = $(themedir)/Bear2/openbox-3
316 dist_bear2_theme_DATA= \
317         themes/Bear2/openbox-3/close_pressed.xbm \
318         themes/Bear2/openbox-3/close.xbm \
319         themes/Bear2/openbox-3/desk_toggled.xbm \
320         themes/Bear2/openbox-3/desk.xbm \
321         themes/Bear2/openbox-3/iconify_pressed.xbm \
322         themes/Bear2/openbox-3/iconify.xbm \
323         themes/Bear2/openbox-3/max_pressed.xbm \
324         themes/Bear2/openbox-3/max_toggled.xbm \
325         themes/Bear2/openbox-3/max.xbm \
326         themes/Bear2/openbox-3/shade_pressed.xbm \
327         themes/Bear2/openbox-3/shade.xbm \
328         themes/Bear2/openbox-3/themerc.xml
329
330 orang_themedir = $(themedir)/Orang/openbox-3
331 dist_orang_theme_DATA= \
332         themes/Orang/openbox-3/themerc.xml
333
334 syscrash_themedir = $(themedir)/Syscrash/openbox-3
335 dist_syscrash_theme_DATA= \
336         themes/Syscrash/openbox-3/max_disabled.xbm \
337         themes/Syscrash/openbox-3/max_pressed.xbm \
338         themes/Syscrash/openbox-3/max_toggled.xbm \
339         themes/Syscrash/openbox-3/max.xbm \
340         themes/Syscrash/openbox-3/themerc.xml
341
342 ## public headers ##
343
344 pubinclude_HEADERS = \
345         render/color.h \
346         render/font.h \
347         render/geom.h \
348         render/gradient.h \
349         render/image.h \
350         render/instance.h \
351         render/mask.h \
352         render/render.h \
353         render/theme.h \
354         parser/parse.h
355
356 nodist_pubinclude_HEADERS = \
357         version.h
358
359 nodist_pkgconfig_DATA = \
360         render/obrender-3.0.pc \
361         parser/obparser-3.0.pc
362
363 ## data ##
364
365 dist_pixmap_DATA = \
366         data/openbox.png
367
368 dist_rc_DATA = \
369         data/autostart.sh \
370         data/rc.xml \
371         data/menu.xml
372
373 edit = $(SED) \
374         -e 's!@version\@!$(VERSION)!' \
375         -e 's!@configdir\@!$(configdir)!' \
376         -e 's!@bindir\@!$(bindir)!'
377
378 data/xsession/openbox-gnome.desktop: \
379                 $(srcdir)/data/xsession/openbox-gnome.desktop.in
380         @echo make: creating $@
381         @mkdir data 2>/dev/null || true
382         @mkdir data/xsession 2>/dev/null || true
383         @$(edit) $< >$@
384
385 data/xsession/openbox-kde.desktop: \
386                 $(srcdir)/data/xsession/openbox-kde.desktop.in
387         @echo make: creating $@
388         @mkdir data 2>/dev/null || true
389         @mkdir data/xsession 2>/dev/null || true
390         @$(edit) $< >$@
391
392 data/xsession/openbox.desktop: \
393                 $(srcdir)/data/xsession/openbox.desktop.in
394         @echo make: creating $@
395         @mkdir data 2>/dev/null || true
396         @mkdir data/xsession 2>/dev/null || true
397         @$(edit) $< >$@
398
399 data/xsession/openbox-gnome-session: \
400                 $(srcdir)/data/xsession/openbox-gnome-session.in
401         @echo make: creating $@
402         @mkdir data 2>/dev/null || true
403         @mkdir data/xsession 2>/dev/null || true
404         @$(edit) $< >$@
405         @chmod a+x $@
406
407 data/xsession/openbox-kde-session: \
408                 $(srcdir)/data/xsession/openbox-kde-session.in
409         @echo make: creating $@
410         @mkdir data 2>/dev/null || true
411         @mkdir data/xsession 2>/dev/null || true
412         @$(edit) $< >$@
413         @chmod a+x $@
414
415 data/xsession/openbox-session: \
416                 $(srcdir)/data/xsession/openbox-session.in
417         @echo make: creating $@
418         @mkdir data 2>/dev/null || true
419         @mkdir data/xsession 2>/dev/null || true
420         @$(edit) $< >$@
421         @chmod a+x $@
422
423 %.1.in: %.1.sgml
424         @echo make: creating $@
425         @mkdir doc 2>/dev/null || true
426         @docbook-to-man $< >$@
427
428 %.1: %.1.in
429         @echo make: creating $@
430         @mkdir doc 2>/dev/null || true
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/themerc.xsd \
446         data/xsession/openbox.desktop.in \
447         data/xsession/openbox-gnome.desktop.in \
448         data/xsession/openbox-kde.desktop.in \
449         data/xsession/openbox-session.in \
450         data/xsession/openbox-gnome-session.in \
451         data/xsession/openbox-kde-session.in \
452         doc/openbox.1.sgml \
453         doc/openbox.1.in \
454         doc/openbox-session.1.sgml \
455         doc/openbox-session.1.in \
456         doc/openbox-gnome-session.1.sgml \
457         doc/openbox-gnome-session.1.in \
458         doc/openbox-kde-session.1.sgml \
459         doc/openbox-kde-session.1.in \
460         render/obrender-3.0.pc.in \
461         parser/obparser-3.0.pc.in \
462         tools/themeupdate/themeupdate.py \
463         tests/hideshow.py \
464         tests/Makefile \
465         tests/aspect.c \
466         tests/fullscreen.c \
467         tests/grav.c \
468         tests/grouptran.c \
469         tests/icons.c \
470         tests/modal2.c \
471         tests/modal3.c \
472         tests/modal.c \
473         tests/noresize.c \
474         tests/override.c \
475         tests/positioned.c \
476         tests/strut.c \
477         tests/title.c \
478         tests/urgent.c
479
480 dist_doc_DATA = \
481         COMPLIANCE \
482         README \
483         AUTHORS \
484         CHANGELOG \
485         COPYING \
486         data/rc.xsd \
487         data/menu.xsd \
488         data/themerc.xsd \
489         doc/rc-mouse-focus.xml
490
491 dist_man_MANS = \
492         doc/openbox.1 \
493         doc/openbox-session.1 \
494         doc/openbox-gnome-session.1 \
495         doc/openbox-kde-session.1
496
497 EXTRA_DIST = \
498         debian/changelog.in \
499         debian/compat \
500         debian/conffiles \
501         debian/control \
502         debian/copyright \
503         debian/menu \
504         debian/postinst \
505         debian/postrm \
506         debian/rules \
507         config.rpath \
508         mkinstalldirs
509
510 #doc:
511 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
512
513 distclean-local:
514         for d in . m4 po render; do \
515                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
516                         rm -f "$$d/$$p"; \
517                 done \
518         done
519
520 .PHONY: doc