1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
14 #-----------------------------------------------------------------------------
18 INSTDIR=$(MANDIR)/man$(SECT)
19 VERSIONFILE = $(LDAPSRC)/build/version
24 -$(MKDIR) -p $(INSTDIR)
25 @TMPMAN=/tmp/ldapman.$$$$; \
26 VERSION=`$(CAT) $(VERSIONFILE)`; \
27 for page in *.$(SECT); do \
28 $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
30 echo "installing $(INSTDIR)/$$page"; \
31 $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
32 if [ -f "$$page.links" ]; then \
33 for link in `$(CAT) $$page.links`; do \
34 echo "installing $(INSTDIR)/$$link as link to $$page"; \
35 ln -sf $$page.gz $(INSTDIR)/$$link.gz; \
50 @$(LN) .src/*.$(SECT) .src/*links .