xref: /titanic_50/usr/src/cmd/mandoc/Makefile (revision 95c635efb7c3b86efc493e0447eaec7aecca3f0f)
1*95c635efSGarrett D'Amore#
2*95c635efSGarrett D'Amore# This file and its contents are supplied under the terms of the
3*95c635efSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
4*95c635efSGarrett D'Amore# You may only use this file in accordance with the terms of version
5*95c635efSGarrett D'Amore# 1.0 of the CDDL.
6*95c635efSGarrett D'Amore#
7*95c635efSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
8*95c635efSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
9*95c635efSGarrett D'Amore# http://www.illumos.org/license/CDDL.
10*95c635efSGarrett D'Amore#
11*95c635efSGarrett D'Amore
12*95c635efSGarrett D'Amore#
13*95c635efSGarrett D'Amore# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
14*95c635efSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
15*95c635efSGarrett D'Amore#
16*95c635efSGarrett D'Amore
17*95c635efSGarrett D'AmorePROGS=		mandoc mandoc_preconv
18*95c635efSGarrett D'Amore
19*95c635efSGarrett D'Amore# We place preconv in /usr/lib.  This is done to avoid conflicting with
20*95c635efSGarrett D'Amore# GNU groff, which puts it into /usr/bin.  We also rename it so that it
21*95c635efSGarrett D'Amore# will only be seen by mandoc -- it isn't intended for general end-user use.
22*95c635efSGarrett D'Amore
23*95c635efSGarrett D'AmoreROOTPROGS =	$(ROOTBIN)/mandoc $(ROOTLIB)/mandoc_preconv
24*95c635efSGarrett D'Amore
25*95c635efSGarrett D'AmoreOBJS=		$(preconv_OBJS) $(mandoc_OBJS)
26*95c635efSGarrett D'Amore
27*95c635efSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.cmd
28*95c635efSGarrett D'Amoreinclude		$(SRC)/cmd/mandoc/Makefile.common
29*95c635efSGarrett D'Amore
30*95c635efSGarrett D'Amore.KEEP_STATE:
31*95c635efSGarrett D'Amore
32*95c635efSGarrett D'Amoreall:		$(PROGS)
33*95c635efSGarrett D'Amore
34*95c635efSGarrett D'Amoremandoc_preconv:	$(preconv_OBJS)
35*95c635efSGarrett D'Amore		$(LINK.c) $(preconv_OBJS) -o $@ $(LDLIBS)
36*95c635efSGarrett D'Amore		$(POST_PROCESS)
37*95c635efSGarrett D'Amore
38*95c635efSGarrett D'Amoremandoc:		$(mandoc_OBJS)
39*95c635efSGarrett D'Amore		$(LINK.c) $(mandoc_OBJS) -o $@ $(LDLIBS)
40*95c635efSGarrett D'Amore		$(POST_PROCESS)
41*95c635efSGarrett D'Amore
42*95c635efSGarrett D'Amoreclean:
43*95c635efSGarrett D'Amore		$(RM) $(OBJS)
44*95c635efSGarrett D'Amore
45*95c635efSGarrett D'Amoreinstall:	all $(ROOTPROGS)
46*95c635efSGarrett D'Amore
47*95c635efSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.targ
48