xref: /titanic_41/usr/src/cmd/mandoc/Makefile (revision 32a712da90cea6ff9a05f51e7844944ccfa28d5e)
1*32a712daSGarrett D'Amore#
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.
6*32a712daSGarrett D'Amore#
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.
10*32a712daSGarrett D'Amore#
11*32a712daSGarrett D'Amore
12*32a712daSGarrett D'Amore#
13*32a712daSGarrett D'Amore# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
14*32a712daSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
15*32a712daSGarrett D'Amore#
16*32a712daSGarrett D'Amore
17*32a712daSGarrett D'AmorePROGS=		mandoc mandoc_preconv
18*32a712daSGarrett D'Amore
19*32a712daSGarrett D'Amore# We place preconv in /usr/lib.  This is done to avoid conflicting with
20*32a712daSGarrett D'Amore# GNU groff, which puts it into /usr/bin.  We also rename it so that it
21*32a712daSGarrett D'Amore# will only be seen by mandoc -- it isn't intended for general end-user use.
22*32a712daSGarrett D'Amore
23*32a712daSGarrett D'AmoreROOTPROGS =	$(ROOTBIN)/mandoc $(ROOTLIB)/mandoc_preconv
24*32a712daSGarrett D'Amore
25*32a712daSGarrett D'AmoreOBJS=		$(preconv_OBJS) $(mandoc_OBJS)
26*32a712daSGarrett D'Amore
27*32a712daSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.cmd
28*32a712daSGarrett D'Amoreinclude		$(SRC)/cmd/mandoc/Makefile.common
29*32a712daSGarrett D'Amore
30*32a712daSGarrett D'Amore.KEEP_STATE:
31*32a712daSGarrett D'Amore
32*32a712daSGarrett D'Amoreall:		$(PROGS)
33*32a712daSGarrett D'Amore
34*32a712daSGarrett D'Amoremandoc_preconv:	$(preconv_OBJS)
35*32a712daSGarrett D'Amore		$(LINK.c) $(preconv_OBJS) -o $@ $(LDLIBS)
36*32a712daSGarrett D'Amore		$(POST_PROCESS)
37*32a712daSGarrett D'Amore
38*32a712daSGarrett D'Amoremandoc:		$(mandoc_OBJS)
39*32a712daSGarrett D'Amore		$(LINK.c) $(mandoc_OBJS) -o $@ $(LDLIBS)
40*32a712daSGarrett D'Amore		$(POST_PROCESS)
41*32a712daSGarrett D'Amore
42*32a712daSGarrett D'Amoreclean:
43*32a712daSGarrett D'Amore		$(RM) $(OBJS)
44*32a712daSGarrett D'Amore
45*32a712daSGarrett D'Amoreinstall:	all $(ROOTPROGS)
46*32a712daSGarrett D'Amore
47*32a712daSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.targ
48