1# This file is part of libdaemon.
2#
3# Copyright 2003-2008 Lennart Poettering
4#
5# libdaemon is free software; you can redistribute it and/or modify it
6# 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# libdaemon 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 libdaemon. If not, see
17# <http://www.gnu.org/licenses/>.
18
19ACLOCAL_AMFLAGS = -I m4
20
21EXTRA_DIST=bootstrap.sh LICENSE
22SUBDIRS=libdaemon doc
23
24if EXAMPLES
25SUBDIRS += examples
26endif
27
28pkgconfigdir = $(libdir)/pkgconfig
29pkgconfig_DATA = pkgconfig/libdaemon.pc
30
31dist_noinst_DATA =
32MAINTAINERCLEANFILES=
33
34if USE_LYNX
35dist_noinst_DATA += README
36MAINTAINERCLEANFILES += README
37
38README:
39	rm -f README
40	$(MAKE) -C doc README
41	ln -s doc/README README
42endif
43
44doxygen:
45	$(MAKE) -C doc doxygen
46
47homepage: dist doxygen
48	test -d $$HOME/homepage/private
49	mkdir -p $$HOME/homepage/private/projects/libdaemon
50	cp libdaemon-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/libdaemon
51	cp doc/README.html doc/style.css $$HOME/homepage/private/projects/libdaemon
52	ln -sf README.html $$HOME/homepage/private/projects/libdaemon/index.html
53	cp -av doc/reference/ $$HOME/homepage/private/projects/libdaemon/
54
55.PHONY: homepage doxygen
56