xref: /titanic_41/usr/src/cmd/man/Makefile (revision 32a712da90cea6ff9a05f51e7844944ccfa28d5e)
17c478bd9Sstevel@tonic-gate#
2*32a712daSGarrett D'Amore# This file and its contents are supplied under the terms of the
3*32a712daSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
4*32a712daSGarrett D'Amore# You may only use this file in accordance with the terms of version
5*32a712daSGarrett D'Amore# 1.0 of the CDDL.
67c478bd9Sstevel@tonic-gate#
7*32a712daSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
8*32a712daSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
9*32a712daSGarrett D'Amore# http://www.illumos.org/license/CDDL.
107c478bd9Sstevel@tonic-gate#
117c478bd9Sstevel@tonic-gate
12*32a712daSGarrett D'Amore#
13*32a712daSGarrett D'Amore# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
14*32a712daSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
15*32a712daSGarrett D'Amore#
167c478bd9Sstevel@tonic-gate
17*32a712daSGarrett D'AmorePROG=		man
18*32a712daSGarrett D'AmoreLINKS=		apropos whatis catman
19*32a712daSGarrett D'AmoreLIBLINKS =	makewhatis
20*32a712daSGarrett D'AmoreOBJS=		makewhatis.o man.o stringlist.o
21*32a712daSGarrett D'AmoreSRCS=		$(OBJS:%.o=%.c)
227c478bd9Sstevel@tonic-gate
23*32a712daSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.cmd
24*32a712daSGarrett D'Amore
25*32a712daSGarrett D'AmoreCFLAGS +=	$(CCVERBOSE)
26*32a712daSGarrett D'Amore
27*32a712daSGarrett D'AmoreROOTLINKS=	$(LINKS:%=$(ROOTBIN)/%) $(LIBLINKS:%=$(ROOTLIB)/%)
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate.KEEP_STATE :
307c478bd9Sstevel@tonic-gate
31*32a712daSGarrett D'Amoreall:		$(PROG)
327c478bd9Sstevel@tonic-gate
33*32a712daSGarrett D'Amoreclean:
34*32a712daSGarrett D'Amore		$(RM) $(OBJS)
357c478bd9Sstevel@tonic-gate
36*32a712daSGarrett D'Amoreinstall:	all $(ROOTPROG) $(ROOTLINKS)
377c478bd9Sstevel@tonic-gate
38*32a712daSGarrett D'Amorelint: 		lint_SRCS
397c478bd9Sstevel@tonic-gate
40*32a712daSGarrett D'Amore$(PROG):	$(OBJS)
41*32a712daSGarrett D'Amore		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42*32a712daSGarrett D'Amore		$(POST_PROCESS)
437c478bd9Sstevel@tonic-gate
44*32a712daSGarrett D'Amore$(ROOTLINKS):	$(ROOTPROG)
45*32a712daSGarrett D'Amore		$(RM) $@; $(LN) $(ROOTPROG) $@
46*32a712daSGarrett D'Amore
47*32a712daSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.targ
48