chiark / gitweb /
autoconfization
[elogind.git] / Makefile.am
1 # This file is part of nss-myhostname.
2 #
3 # Copyright 2008 Lennart Poettering
4 #
5 # nss-myhostname is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public License
7 # as published by the Free Software Foundation, either version 2.1 of
8 # the License, or (at your option) any later version.
9 #
10 # nss-myhostname is distributed in the hope that it will be useful,
11 # but 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 nss-myhostname. If not, If not, see
17 # <http://www.gnu.org/licenses/>.
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 lib_LTLIBRARIES = libnss_myhostname.la
22
23 EXTRA_DIST=bootstrap.sh README LICENSE
24 SUBDIRS=doc
25
26 MAINTAINERCLEANFILES=README
27 noinst_DATA = README
28
29 README:
30         rm -f README
31         $(MAKE) -C doc README
32         cd $(srcdir) && ln -s doc/README README
33
34 homepage: all dist
35         test -d $$HOME/homepage/private
36         mkdir -p $$HOME/homepage/private/projects/nss-myhostname
37         cp nss-myhostname-@PACKAGE_VERSION@.tar.gz doc/README.html doc/style.css $$HOME/homepage/private/projects/nss-myhostname
38         ln -sf README.html $$HOME/homepage/private/projects/nss-myhostname/index.html
39
40 .PHONY: homepage
41
42 libnss_myhostname_la_SOURCES = nss-myhostname.c
43 libnss_myhostname_la_LDFLAGS = -avoid-version -module -export-dynamic -shrext .so.2
44
45 install-exec-hook:
46         rm -f $(DESTDIR)$(libdir)/libnss_myhostname.la
47         rm -f $(DESTDIR)$(libdir)/libnss_myhostname_minimal.la
48
49 uninstall-hook:
50         rm -f $(DESTDIR)$(libdir)/libnss_myhostname.so.2
51         rm -f $(DESTDIR)$(libdir)/libnss_myhostname_minimal.so.2