1998-12-29 03:58:57 +08:00
|
|
|
## Copyright 1998,1999 The OpenLDAP Foundation
|
|
|
|
## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
|
|
|
|
## of this package for details.
|
1998-10-25 09:41:42 +08:00
|
|
|
##---------------------------------------------------------------------------
|
|
|
|
##
|
|
|
|
## Makefile Template for Manual Pages
|
|
|
|
##
|
|
|
|
|
|
|
|
MANDIR=$(mandir)/man$(MANSECT)
|
1999-03-01 00:10:37 +08:00
|
|
|
TMP_SUFFIX=tmp
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-03-13 06:32:15 +08:00
|
|
|
all-common:
|
1999-03-03 04:23:37 +08:00
|
|
|
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
|
|
|
|
for page in $$PAGES; do \
|
1999-04-30 02:28:57 +08:00
|
|
|
$(SED) -e "s%LDVERSION%$(VERSION)%" \
|
1998-10-25 09:41:42 +08:00
|
|
|
-e 's%ETCDIR%$(sysconfdir)%' \
|
1999-01-08 17:59:09 +08:00
|
|
|
-e 's%LOCALSTATEDIR%$(localstatedir)%' \
|
1998-10-25 09:41:42 +08:00
|
|
|
-e 's%SYSCONFDIR%$(sysconfdir)%' \
|
1998-11-30 03:48:28 +08:00
|
|
|
-e 's%DATADIR%$(datadir)%' \
|
1998-10-25 09:41:42 +08:00
|
|
|
-e 's%SBINDIR%$(sbindir)%' \
|
|
|
|
-e 's%BINDIR%$(bindir)%' \
|
|
|
|
-e 's%LIBDIR%$(libdir)%' \
|
|
|
|
-e 's%LIBEXECDIR%$(libexecdir)%' \
|
1999-03-03 04:23:37 +08:00
|
|
|
$(srcdir)/$$page > $$page.$(TMP_SUFFIX); \
|
1999-03-01 00:10:37 +08:00
|
|
|
done
|
|
|
|
touch all-common
|
|
|
|
|
|
|
|
install-common:
|
1999-03-03 04:23:37 +08:00
|
|
|
-$(MKDIR) $(MANDIR)
|
|
|
|
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
|
|
|
|
for page in $$PAGES; do \
|
1998-10-25 09:41:42 +08:00
|
|
|
echo "installing $(MANDIR)/$$page"; \
|
1999-03-01 00:10:37 +08:00
|
|
|
$(RM) $(MANDIR)/$$page; \
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 $$page.$(TMP_SUFFIX) $(MANDIR)/$$page; \
|
1999-04-21 14:09:19 +08:00
|
|
|
if test -f "$(srcdir)/$$page.links" ; then \
|
1999-03-03 04:23:37 +08:00
|
|
|
for link in `$(CAT) $(srcdir)/$$page.links`; do \
|
1998-10-25 09:41:42 +08:00
|
|
|
echo "installing $(MANDIR)/$$link as link to $$page"; \
|
1999-07-17 01:07:53 +08:00
|
|
|
$(RM) $(MANDIR)/$$link ; \
|
1999-07-17 01:04:10 +08:00
|
|
|
$(LN_S) $$page $(MANDIR)/$$link; \
|
1998-10-25 09:41:42 +08:00
|
|
|
done; \
|
|
|
|
fi; \
|
1999-03-01 02:47:07 +08:00
|
|
|
done
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-03-01 01:08:54 +08:00
|
|
|
clean-common: FORCE
|
|
|
|
$(RM) *.tmp all-common
|
|
|
|
|
|
|
|
Makefile: $(top_srcdir)/build/man.mk
|