17c478bdstevel@tonic-gate#
295c635eGarrett D'Amore# This file and its contents are supplied under the terms of the
395c635eGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
495c635eGarrett D'Amore# You may only use this file in accordance with the terms of version
595c635eGarrett D'Amore# 1.0 of the CDDL.
67c478bdstevel@tonic-gate#
795c635eGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
895c635eGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
995c635eGarrett D'Amore# http://www.illumos.org/license/CDDL.
107c478bdstevel@tonic-gate#
1195c635eGarrett D'Amore
127c478bdstevel@tonic-gate#
1395c635eGarrett D'Amore# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
1495c635eGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
152b77347Andy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
167c478bdstevel@tonic-gate#
177c478bdstevel@tonic-gate
1895c635eGarrett D'AmorePROG=		man
1995c635eGarrett D'AmoreLINKS=		apropos whatis catman
2095c635eGarrett D'AmoreLIBLINKS =	makewhatis
2195c635eGarrett D'AmoreOBJS=		makewhatis.o man.o stringlist.o
222b77347Andy FiddamanMANIFEST=	update-man-index.xml
232b77347Andy FiddamanSVCMETHOD=	update-man-index
2495c635eGarrett D'Amore
2595c635eGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.cmd
2695c635eGarrett D'Amore
272b77347Andy FiddamanROOTMANIFESTDIR=	$(ROOTSVCSYSTEM)
282b77347Andy Fiddaman
2995c635eGarrett D'AmoreCFLAGS +=	$(CCVERBOSE)
307c478bdstevel@tonic-gate
3195c635eGarrett D'AmoreROOTLINKS=	$(LINKS:%=$(ROOTBIN)/%) $(LIBLINKS:%=$(ROOTLIB)/%)
327c478bdstevel@tonic-gate
3395c635eGarrett D'Amore.KEEP_STATE :
347c478bdstevel@tonic-gate
3595c635eGarrett D'Amoreall:		$(PROG)
367c478bdstevel@tonic-gate
3795c635eGarrett D'Amoreclean:
3895c635eGarrett D'Amore		$(RM) $(OBJS)
397c478bdstevel@tonic-gate
402b77347Andy Fiddamaninstall:	all $(ROOTPROG) $(ROOTLINKS) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
417c478bdstevel@tonic-gate
422b77347Andy Fiddamancheck:		$(CHKMANIFEST)
437c478bdstevel@tonic-gate
4495c635eGarrett D'Amore$(PROG):	$(OBJS)
4595c635eGarrett D'Amore		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
4695c635eGarrett D'Amore		$(POST_PROCESS)
477c478bdstevel@tonic-gate
4895c635eGarrett D'Amore$(ROOTLINKS):	$(ROOTPROG)
4995c635eGarrett D'Amore		$(RM) $@; $(LN) $(ROOTPROG) $@
507c478bdstevel@tonic-gate
5195c635eGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.targ
52