1999-08-30 08:08:00 +00:00
|
|
|
# $OpenLDAP$
|
2005-01-21 19:38:13 +00:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
2009-01-22 00:40:04 +00:00
|
|
|
## Copyright 1998-2009 The OpenLDAP Foundation.
|
2003-11-26 02:58:56 +00:00
|
|
|
## All rights reserved.
|
1998-10-25 01:41:42 +00:00
|
|
|
##
|
2003-11-26 02:58:56 +00:00
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
## Public License.
|
1998-10-25 01:41:42 +00:00
|
|
|
##
|
2003-11-26 02:58:56 +00:00
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
|
|
|
##---------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile Template for Manual Pages
|
|
|
|
#
|
1998-10-25 01:41:42 +00:00
|
|
|
|
|
|
|
MANDIR=$(mandir)/man$(MANSECT)
|
1999-02-28 16:10:37 +00:00
|
|
|
TMP_SUFFIX=tmp
|
1998-10-25 01:41:42 +00:00
|
|
|
|
1999-03-12 22:32:15 +00:00
|
|
|
all-common:
|
1999-03-02 20:23:37 +00:00
|
|
|
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
|
|
|
|
for page in $$PAGES; do \
|
1999-04-29 18:28:57 +00:00
|
|
|
$(SED) -e "s%LDVERSION%$(VERSION)%" \
|
2007-11-09 03:56:26 +00:00
|
|
|
-e 's%ETCDIR%$(sysconfdir)%g' \
|
1999-01-08 09:59:09 +00:00
|
|
|
-e 's%LOCALSTATEDIR%$(localstatedir)%' \
|
1998-10-25 01:41:42 +00:00
|
|
|
-e 's%SYSCONFDIR%$(sysconfdir)%' \
|
1998-11-29 19:48:28 +00:00
|
|
|
-e 's%DATADIR%$(datadir)%' \
|
1998-10-25 01:41:42 +00:00
|
|
|
-e 's%SBINDIR%$(sbindir)%' \
|
|
|
|
-e 's%BINDIR%$(bindir)%' \
|
|
|
|
-e 's%LIBDIR%$(libdir)%' \
|
|
|
|
-e 's%LIBEXECDIR%$(libexecdir)%' \
|
2009-06-23 23:33:29 +00:00
|
|
|
-e 's%MODULEDIR%$(moduledir)%' \
|
2002-06-13 03:59:10 +00:00
|
|
|
-e 's%RELEASEDATE%$(RELEASEDATE)%' \
|
2007-01-02 20:25:16 +00:00
|
|
|
$(srcdir)/$$page \
|
2007-02-01 10:58:40 +00:00
|
|
|
| (cd $(srcdir); $(SOELIM) -) > $$page.$(TMP_SUFFIX); \
|
1999-02-28 16:10:37 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
install-common:
|
1999-09-22 21:51:30 +00:00
|
|
|
-$(MKDIR) $(DESTDIR)$(MANDIR)
|
1999-03-02 20:23:37 +00:00
|
|
|
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
|
|
|
|
for page in $$PAGES; do \
|
2005-08-13 15:22:09 +00:00
|
|
|
echo "installing $$page in $(DESTDIR)$(MANDIR)"; \
|
1999-09-22 21:51:30 +00:00
|
|
|
$(RM) $(DESTDIR)$(MANDIR)/$$page; \
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 $$page.$(TMP_SUFFIX) $(DESTDIR)$(MANDIR)/$$page; \
|
1999-04-21 06:09:19 +00:00
|
|
|
if test -f "$(srcdir)/$$page.links" ; then \
|
1999-03-02 20:23:37 +00:00
|
|
|
for link in `$(CAT) $(srcdir)/$$page.links`; do \
|
2005-08-13 15:22:09 +00:00
|
|
|
echo "installing $$link in $(DESTDIR)$(MANDIR) as link to $$page"; \
|
1999-09-22 21:51:30 +00:00
|
|
|
$(RM) $(DESTDIR)$(MANDIR)/$$link ; \
|
2005-08-12 21:14:32 +00:00
|
|
|
$(LN_S) $(DESTDIR)$(MANDIR)/$$page $(DESTDIR)$(MANDIR)/$$link; \
|
1998-10-25 01:41:42 +00:00
|
|
|
done; \
|
|
|
|
fi; \
|
1999-02-28 18:47:07 +00:00
|
|
|
done
|
1998-10-25 01:41:42 +00:00
|
|
|
|
1999-02-28 17:08:54 +00:00
|
|
|
clean-common: FORCE
|
|
|
|
$(RM) *.tmp all-common
|
|
|
|
|
|
|
|
Makefile: $(top_srcdir)/build/man.mk
|