Merge commit '6e270ca825f06ec0e2d77db462b83074ec585f2f'
[unleashed.git] / usr / src / cmd / troff / Makefile
blob0896378cf86c632bbe58bdebddbec7e353510b21
2 # CDDL HEADER START
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.
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.
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]
20 # CDDL HEADER END
23 # ident "%Z%%M% %I% %E% SMI"
25 # Copyright (c) 1989 by Sun Microsystems, Inc.
27 # cmd/troff/Makefile
30 include ../Makefile.cmd
32 SUBDIRS = nroff.d troff.d
35 all := TARGET = all
36 install := TARGET = install
37 clean := TARGET = clean
38 clobber := TARGET = clobber
39 strip := TARGET = strip
40 _msg := TARGET = catalog
43 # for message catalog
45 POFILES= $(SUBDIRS:%=%/%.po)
46 POFILE= troff.po
49 .KEEP_STATE :
51 all : $(SUBDIRS)
53 install clean strip: $(SUBDIRS)
55 clobber: $(SUBDIRS) local_clobber
57 local_clobber:
58 $(RM) $(CLOBBERFILES)
60 $(POFILE): $(SUBDIRS) $(POFILES2)
61 cat $(POFILES) $(POFILES2) > $@
63 _msg: $(SUBDIRS)
64 $(RM) $(POFILE)
65 cat $(POFILES) > $(POFILE)
66 $(RM) $(MSGDOMAIN)/$(POFILE)
67 cp $(POFILE) $(MSGDOMAIN)
69 $(SUBDIRS) : FRC
70 @cd $@; pwd; $(MAKE) $(TARGET)
72 FRC: