Make-template 1.44 KB
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
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
#-----------------------------------------------------------------------------
# Copyright (c) 1994 Regents of the University of Michigan.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of Michigan at Ann Arbor. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#       LDAP man3 makefile
#
#-----------------------------------------------------------------------------

LDAPSRC= ../../..
SECT=3
INSTDIR=$(MANDIR)/man$(SECT)
VERSIONFILE = $(LDAPSRC)/build/version

all:	FORCE

install:	FORCE
	-$(MKDIR) -p $(INSTDIR)
	@TMPMAN=/tmp/ldapman.$$$$; \
	VERSION=`$(CAT) $(VERSIONFILE)`; \
	for page in *.$(SECT); do \
	    $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
		    $$page > $$TMPMAN; \
	    echo "installing $(INSTDIR)/$$page"; \
	    $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
	    if [ -f "$$page.links" ]; then \
		for link in `$(CAT) $$page.links`; do \
		    echo "installing $(INSTDIR)/$$link as link to $$page"; \
35
		    ln -sf $$page.gz $(INSTDIR)/$$link.gz; \
Kurt Zeilenga's avatar
Kurt Zeilenga committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
		done; \
	    fi; \
	done; \
	$(RM) $$TMPMAN

clean:	FORCE

depend:	FORCE

lint:	FORCE

5lint:	FORCE

links:
	@$(LN) .src/*.$(SECT) .src/*links .