1 # This file is part of nss-myhostname.
3 # Copyright 2008 Lennart Poettering
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.
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.
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/>.
19 ACLOCAL_AMFLAGS = -I m4
21 lib_LTLIBRARIES = libnss_myhostname.la
23 EXTRA_DIST=bootstrap.sh README LICENSE
26 MAINTAINERCLEANFILES=README
32 cd $(srcdir) && ln -s doc/README README
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
42 libnss_myhostname_la_SOURCES = nss-myhostname.c
43 libnss_myhostname_la_LDFLAGS = -avoid-version -module -export-dynamic -shrext .so.2
46 rm -f $(DESTDIR)$(libdir)/libnss_myhostname.la
47 rm -f $(DESTDIR)$(libdir)/libnss_myhostname_minimal.la
50 rm -f $(DESTDIR)$(libdir)/libnss_myhostname.so.2
51 rm -f $(DESTDIR)$(libdir)/libnss_myhostname_minimal.so.2