xref: /titanic_41/usr/src/cmd/mandoc/Makefile (revision 1f04db572a7ce85ca43ddb8519612f22720bd94b)
132a712daSGarrett D'Amore#
232a712daSGarrett D'Amore# This file and its contents are supplied under the terms of the
332a712daSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
432a712daSGarrett D'Amore# You may only use this file in accordance with the terms of version
532a712daSGarrett D'Amore# 1.0 of the CDDL.
632a712daSGarrett D'Amore#
732a712daSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
832a712daSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
932a712daSGarrett D'Amore# http://www.illumos.org/license/CDDL.
1032a712daSGarrett D'Amore#
1132a712daSGarrett D'Amore
1232a712daSGarrett D'Amore#
1332a712daSGarrett D'Amore# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
1432a712daSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
1532a712daSGarrett D'Amore#
1632a712daSGarrett D'Amore
1732a712daSGarrett D'AmorePROGS=		mandoc mandoc_preconv
1832a712daSGarrett D'Amore
1932a712daSGarrett D'Amore# We place preconv in /usr/lib.  This is done to avoid conflicting with
2032a712daSGarrett D'Amore# GNU groff, which puts it into /usr/bin.  We also rename it so that it
2132a712daSGarrett D'Amore# will only be seen by mandoc -- it isn't intended for general end-user use.
2232a712daSGarrett D'Amore
2332a712daSGarrett D'AmoreROOTPROGS =	$(ROOTBIN)/mandoc $(ROOTLIB)/mandoc_preconv
2432a712daSGarrett D'Amore
2532a712daSGarrett D'AmoreOBJS=		$(preconv_OBJS) $(mandoc_OBJS)
2632a712daSGarrett D'Amore
27*1f04db57SRichard PALOCLOBBERFILES +=	$(PROGS)
28*1f04db57SRichard PALO
2932a712daSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.cmd
3032a712daSGarrett D'Amoreinclude		$(SRC)/cmd/mandoc/Makefile.common
3132a712daSGarrett D'Amore
3232a712daSGarrett D'Amore.KEEP_STATE:
3332a712daSGarrett D'Amore
3432a712daSGarrett D'Amoreall:		$(PROGS)
3532a712daSGarrett D'Amore
3632a712daSGarrett D'Amoremandoc_preconv:	$(preconv_OBJS)
3732a712daSGarrett D'Amore		$(LINK.c) $(preconv_OBJS) -o $@ $(LDLIBS)
3832a712daSGarrett D'Amore		$(POST_PROCESS)
3932a712daSGarrett D'Amore
4032a712daSGarrett D'Amoremandoc:		$(mandoc_OBJS)
4132a712daSGarrett D'Amore		$(LINK.c) $(mandoc_OBJS) -o $@ $(LDLIBS)
4232a712daSGarrett D'Amore		$(POST_PROCESS)
4332a712daSGarrett D'Amore
4432a712daSGarrett D'Amoreclean:
4532a712daSGarrett D'Amore		$(RM) $(OBJS)
4632a712daSGarrett D'Amore
4732a712daSGarrett D'Amoreinstall:	all $(ROOTPROGS)
4832a712daSGarrett D'Amore
4932a712daSGarrett D'Amoreinclude		$(SRC)/cmd/Makefile.targ
50