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