xref: /illumos-gate/usr/src/tools/mandoc/Makefile (revision 503609a9497e27f206d815a06ce90a747d2ce573)
195c635efSGarrett D'Amore#
295c635efSGarrett D'Amore# This file and its contents are supplied under the terms of the
395c635efSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
495c635efSGarrett D'Amore# You may only use this file in accordance with the terms of version
595c635efSGarrett D'Amore# 1.0 of the CDDL.
695c635efSGarrett D'Amore#
795c635efSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
895c635efSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
995c635efSGarrett D'Amore# http://www.illumos.org/license/CDDL.
1095c635efSGarrett D'Amore#
1195c635efSGarrett D'Amore
1295c635efSGarrett D'Amore#
13260e9a87SYuri Pankov# Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
1495c635efSGarrett D'Amore#
1595c635efSGarrett D'Amore
1695c635efSGarrett D'AmoreCMDDIR=		$(SRC)/cmd/mandoc
1795c635efSGarrett D'Amore
18*503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.tools
19260e9a87SYuri Pankovinclude		$(CMDDIR)/Makefile.common
2095c635efSGarrett D'Amore
2195c635efSGarrett D'Amore.KEEP_STATE:
2295c635efSGarrett D'Amore
2395c635efSGarrett D'Amoreall:		$(PROG)
2495c635efSGarrett D'Amore
25*503609a9SYuri Pankovinstall:	all $(ROOTONBLDMACHPROG)
26260e9a87SYuri Pankov
27260e9a87SYuri Pankovclean:
28260e9a87SYuri Pankov		$(RM) $(PROG) $(OBJS)
29260e9a87SYuri Pankov
30260e9a87SYuri Pankov$(PROG):	$(OBJS)
31260e9a87SYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
32260e9a87SYuri Pankov		$(POST_PROCESS)
3395c635efSGarrett D'Amore
3495c635efSGarrett D'Amore%.o:		$(CMDDIR)/%.c
3595c635efSGarrett D'Amore		$(COMPILE.c) -o $@ $<
3695c635efSGarrett D'Amore
37*503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.targ
38