-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
48 lines (41 loc) · 1.52 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# (c) 2011 Mandriva, http://www.mandriva.com
#
# $Id$
#
# This file is part of Mandriva Management Console (MMC).
#
# MMC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# MMC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MMC. If not, see <http://www.gnu.org/licenses/>.
#
# Author(s)
# Jean Parpaillon <[email protected]>
#
ldapconfdir = @ldapconfdir@
ldaplibdir = @ldaplibdir@
dist_sysconf_DATA = mmc-password-helper.ini
dist_ldapconf_DATA = mmc-check-password.conf
dist_bin_SCRIPTS = mmc-password-helper
ldaplib_LTLIBRARIES = mmc-check-password.la
mmc_check_password_la_CFLAGS = -I/usr/include/openldap/slapd/ -I/usr/include/openldap/include -DCONFIG_FILE=\"$(ldapconfdir)/mmc-check-password.conf\"
mmc_check_password_la_SOURCES = mmc-check-password.c
mmc_check_password_la_LDFLAGS = -module
EXTRA_DIST = mmc-password-helper.in
CLEANFILES = mmc-password-helper
mmc-password-helper: Makefile
rm -f $@ [email protected]
$(MKDIR_P) $(@D)
srcdir=''; \
test -f ./[email protected] || srcdir=$(srcdir)/; \
$(edit) $${srcdir}[email protected] >[email protected]
mv [email protected] $@
edit = sed -e 's|@sysconfdir[@]|$(sysconfdir)|g'