1999-08-30 04:08:00 -04:00
|
|
|
# $OpenLDAP$
|
2005-01-01 15:49:32 -05:00
|
|
|
## Copyright 1998-2005 The OpenLDAP Foundation.
|
2003-11-25 21:58:56 -05:00
|
|
|
## All rights reserved.
|
1998-10-24 21:41:42 -04:00
|
|
|
##
|
2003-11-25 21:58:56 -05: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-24 21:41:42 -04:00
|
|
|
##
|
2003-11-25 21:58:56 -05: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-24 21:41:42 -04:00
|
|
|
|
|
|
|
|
MANDIR=$(mandir)/man$(MANSECT)
|
1999-02-28 11:10:37 -05:00
|
|
|
TMP_SUFFIX=tmp
|
1998-10-24 21:41:42 -04:00
|
|
|
|
1999-03-12 17:32:15 -05:00
|
|
|
all-common:
|
1999-03-02 15:23:37 -05:00
|
|
|
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
|
|
|
|
|
for page in $$PAGES; do \
|
1999-04-29 14:28:57 -04:00
|
|
|
$(SED) -e "s%LDVERSION%$(VERSION)%" \
|
1998-10-24 21:41:42 -04:00
|
|
|
-e 's%ETCDIR%$(sysconfdir)%' \
|
1999-01-08 04:59:09 -05:00
|
|
|
-e 's%LOCALSTATEDIR%$(localstatedir)%' \
|
1998-10-24 21:41:42 -04:00
|
|
|
-e 's%SYSCONFDIR%$(sysconfdir)%' \
|
1998-11-29 14:48:28 -05:00
|
|
|
-e 's%DATADIR%$(datadir)%' \
|
1998-10-24 21:41:42 -04:00
|
|
|
-e 's%SBINDIR%$(sbindir)%' \
|
|
|
|
|
-e 's%BINDIR%$(bindir)%' \
|
|
|
|
|
-e 's%LIBDIR%$(libdir)%' \
|
|
|
|
|
-e 's%LIBEXECDIR%$(libexecdir)%' \
|
2002-06-12 23:59:10 -04:00
|
|
|
-e 's%RELEASEDATE%$(RELEASEDATE)%' \
|
1999-03-02 15:23:37 -05:00
|
|
|
$(srcdir)/$$page > $$page.$(TMP_SUFFIX); \
|
1999-02-28 11:10:37 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
install-common:
|
1999-09-22 17:51:30 -04:00
|
|
|
-$(MKDIR) $(DESTDIR)$(MANDIR)
|
1999-03-02 15:23:37 -05:00
|
|
|
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
|
|
|
|
|
for page in $$PAGES; do \
|
1998-10-24 21:41:42 -04:00
|
|
|
echo "installing $(MANDIR)/$$page"; \
|
1999-09-22 17:51:30 -04:00
|
|
|
$(RM) $(DESTDIR)$(MANDIR)/$$page; \
|
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 $$page.$(TMP_SUFFIX) $(DESTDIR)$(MANDIR)/$$page; \
|
1999-04-21 02:09:19 -04:00
|
|
|
if test -f "$(srcdir)/$$page.links" ; then \
|
1999-03-02 15:23:37 -05:00
|
|
|
for link in `$(CAT) $(srcdir)/$$page.links`; do \
|
1998-10-24 21:41:42 -04:00
|
|
|
echo "installing $(MANDIR)/$$link as link to $$page"; \
|
1999-09-22 17:51:30 -04:00
|
|
|
$(RM) $(DESTDIR)$(MANDIR)/$$link ; \
|
|
|
|
|
$(LN_S) $$page $(DESTDIR)$(MANDIR)/$$link; \
|
1998-10-24 21:41:42 -04:00
|
|
|
done; \
|
|
|
|
|
fi; \
|
1999-02-28 13:47:07 -05:00
|
|
|
done
|
1998-10-24 21:41:42 -04:00
|
|
|
|
1999-02-28 12:08:54 -05:00
|
|
|
clean-common: FORCE
|
|
|
|
|
$(RM) *.tmp all-common
|
|
|
|
|
|
|
|
|
|
Makefile: $(top_srcdir)/build/man.mk
|