1# This file is part of libcanberra.
2#
3# Copyright 2008 Lennart Poettering
4#
5# libcanberra is free software; you can redistribute it and/or modify
6# it under the terms of the GNU Lesser General Public License as
7# published by the Free Software Foundation, either version 2.1 of the
8# License, or (at your option) any later version.
9#
10# libcanberra is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public
16# License along with libcanberra. If not, see
17# <http://www.gnu.org/licenses/>.
18
19dist_doc_DATA = README
20
21EXTRA_DIST = \
22	autogen.sh \
23	LGPL \
24	vala/libcanberra.vapi \
25	vala/libcanberra-gtk.vapi
26
27SUBDIRS = src gtkdoc doc
28
29MAINTAINERCLEANFILES = README
30noinst_DATA = README
31
32pkgconfigdir = $(libdir)/pkgconfig
33pkgconfig_DATA = libcanberra.pc
34
35vapidir = $(datadir)/vala/vapi
36vapi_DATA = vala/libcanberra.vapi
37
38if HAVE_GTK_ANY
39
40if HAVE_GTK
41pkgconfig_DATA += libcanberra-gtk.pc
42endif
43
44if HAVE_GTK3
45pkgconfig_DATA += libcanberra-gtk3.pc
46endif
47
48vapi_DATA += vala/libcanberra-gtk.vapi
49
50endif
51
52DISTCHECK_CONFIGURE_FLAGS =  \
53	--enable-gtk-doc \
54	--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
55
56ACLOCAL_AMFLAGS = -I m4
57
58README:
59	rm -f README
60	$(MAKE) -C doc README
61	ln -s doc/README README
62
63homepage: dist
64	test -d $$HOME/homepage/private
65	mkdir -p $$HOME/homepage/private/projects/libcanberra $$HOME/homepage/private/projects/libcanberra/gtkdoc
66	cp libcanberra-@PACKAGE_VERSION@.tar.xz $$HOME/homepage/private/projects/libcanberra
67	cp doc/README.html doc/style.css $$HOME/homepage/private/projects/libcanberra
68	cp -a gtkdoc/html/* $$HOME/homepage/private/projects/libcanberra/gtkdoc
69	ln -sf README.html $$HOME/homepage/private/projects/libcanberra/index.html
70
71.PHONY: homepage
72