xref: /illumos-gate/usr/src/cmd/troff/Makefile (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright (c) 1989 by Sun Microsystems, Inc.
24#
25
26include ../Makefile.cmd
27
28SUBDIRS =	nroff.d troff.d
29
30
31all :=		TARGET = all
32install :=	TARGET = install
33clean :=	TARGET = clean
34clobber :=	TARGET = clobber
35lint :=		TARGET = lint
36strip :=	TARGET = strip
37_msg :=         TARGET = catalog
38
39#
40# for message catalog
41#
42POFILES= $(SUBDIRS:%=%/%.po)
43POFILE= troff.po
44
45
46.KEEP_STATE:
47
48all:		$(SUBDIRS)
49
50install clean lint strip:	$(SUBDIRS)
51
52clobber: $(SUBDIRS) local_clobber
53
54local_clobber:
55	$(RM)	$(CLOBBERFILES)
56
57$(POFILE):      $(SUBDIRS) $(POFILES2)
58	cat     $(POFILES) $(POFILES2)  >       $@
59
60_msg:   $(MSGDOMAIN) $(SUBDIRS)
61	  $(RM)	$(POFILE)
62	  cat    $(POFILES)      > $(POFILE)
63	  $(RM) $(MSGDOMAIN)/$(POFILE)
64	  cp $(POFILE) $(MSGDOMAIN)
65
66$(SUBDIRS):	FRC
67	@cd $@; pwd; $(MAKE) $(TARGET)
68
69FRC:
70
71include $(SRC)/Makefile.msg.targ
72