Makefile revision 95c635efb7c3b86efc493e0447eaec7aecca3f0f
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# This file and its contents are supplied under the terms of the
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# You may only use this file in accordance with the terms of version
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# 1.0 of the CDDL.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# http://www.illumos.org/license/CDDL.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmorePROGS= mandoc mandoc_preconv
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# We place preconv in /usr/lib. This is done to avoid conflicting with
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# GNU groff, which puts it into /usr/bin. We also rename it so that it
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# will only be seen by mandoc -- it isn't intended for general end-user use.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreROOTPROGS = $(ROOTBIN)/mandoc $(ROOTLIB)/mandoc_preconv
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreOBJS= $(preconv_OBJS) $(mandoc_OBJS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinclude $(SRC)/cmd/Makefile.cmd
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinclude $(SRC)/cmd/mandoc/Makefile.common
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore.KEEP_STATE:
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreall: $(PROGS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoremandoc_preconv: $(preconv_OBJS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(LINK.c) $(preconv_OBJS) -o $@ $(LDLIBS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(POST_PROCESS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoremandoc: $(mandoc_OBJS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(LINK.c) $(mandoc_OBJS) -o $@ $(LDLIBS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(POST_PROCESS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreclean:
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(RM) $(OBJS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinstall: all $(ROOTPROGS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinclude $(SRC)/cmd/Makefile.targ