|
Packit |
6bd9ab |
# Makefile.am - use automake to generate Makefile.in
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# Copyright (C) 2010, 2011, 2012, 2013 Arthur de Jong
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# This library is free software; you can redistribute it and/or
|
|
Packit |
6bd9ab |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6bd9ab |
# License as published by the Free Software Foundation; either
|
|
Packit |
6bd9ab |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# This library is distributed in the hope that it will be useful,
|
|
Packit |
6bd9ab |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6bd9ab |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6bd9ab |
# Lesser General Public License for more details.
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6bd9ab |
# License along with this library; if not, write to the Free Software
|
|
Packit |
6bd9ab |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit |
6bd9ab |
# 02110-1301 USA
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
pynslcddir = $(datadir)/pynslcd
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
pynslcd_PYTHON = pynslcd.py attmap.py cache.py cfg.py common.py expr.py \
|
|
Packit |
6bd9ab |
mypidfile.py invalidator.py search.py tio.py \
|
|
Packit |
6bd9ab |
config.py alias.py ether.py group.py host.py netgroup.py \
|
|
Packit |
6bd9ab |
network.py passwd.py protocol.py rpc.py service.py \
|
|
Packit |
6bd9ab |
shadow.py pam.py usermod.py
|
|
Packit |
6bd9ab |
nodist_pynslcd_PYTHON = constants.py
|
|
Packit |
6bd9ab |
CLEANFILES = $(nodist_pynslcd_PYTHON)
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
all-local: $(nodist_pynslcd_PYTHON)
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
# clean up locally created compiled Python files
|
|
Packit |
6bd9ab |
clean-local:
|
|
Packit |
6bd9ab |
rm -f *.pyc *.pyo
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
constants.py: constants.py.in $(top_srcdir)/nslcd.h
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
# create a symbolic link for the pynslcd daemon and fix permissions
|
|
Packit |
6bd9ab |
install-data-hook:
|
|
Packit |
6bd9ab |
chmod a+rx $(DESTDIR)$(pynslcddir)/pynslcd.py
|
|
Packit |
6bd9ab |
$(MKDIR_P) $(DESTDIR)$(sbindir)
|
|
Packit |
6bd9ab |
[ -L $(DESTDIR)$(sbindir)/pynslcd ] || $(LN_S) $(pynslcddir)/pynslcd.py $(DESTDIR)$(sbindir)/pynslcd
|