Tizen 2.0 Release
[external/libdaemon.git] / Makefile.am
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
19 ACLOCAL_AMFLAGS = -I m4
20
21 EXTRA_DIST=bootstrap.sh LICENSE
22 SUBDIRS=libdaemon doc
23
24 if EXAMPLES
25 SUBDIRS += examples
26 endif
27
28 pkgconfigdir = $(libdir)/pkgconfig
29 pkgconfig_DATA = pkgconfig/libdaemon.pc
30
31 dist_noinst_DATA =
32 MAINTAINERCLEANFILES=
33
34 if USE_LYNX
35 dist_noinst_DATA += README
36 MAINTAINERCLEANFILES += README
37
38 README:
39         rm -f README
40         $(MAKE) -C doc README
41         ln -s doc/README README
42 endif
43
44 doxygen:
45         $(MAKE) -C doc doxygen
46
47 homepage: 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