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