xref: /titanic_44/usr/src/cmd/vi/Makefile (revision 734b6a94890be549309b21156f8ed6d4561cac51)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989-2001 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# cmd/vi/Makefile
29
30SUBDIRS=	misc port
31TXTS=		PRESERVE README
32POFILES=        $(SUBDIRS:%=%/%.po)
33
34include ../Makefile.cmd
35#
36# For message catalogue file
37#
38POFILE= vi.po
39
40OWNER=	root
41GROUP=	sys
42
43all:=		TARGET= all
44install:=	TARGET= install
45clean:=		TARGET= clean
46clobber:=	TARGET= clobber
47lint:=		TARGET= lint
48_msg:=          TARGET= catalog
49
50# this directory is made in ../../Targetdirs
51ROOTINITD= $(ROOTETC)/init.d
52
53ROOTLINK= $(ROOTETC)/rc2.d/S89PRESERVE
54
55ETCINITF= PRESERVE
56ROOTETCINITF= $(ETCINITF:%=$(ROOTINITD)/%)
57$(ROOTETCINITF):=	FILEMODE =	744
58
59$(ROOTINITD)/% : %
60	$(INS.file)
61
62.KEEP_STATE:
63
64all:	$(SUBDIRS)
65
66install: $(ETCINITF) $(SUBDIRS) $(ROOTETCINITF) $(ROOTLINK)
67
68$(ROOTLINK): $(ROOTETCINITF)
69	-$(RM) $@
70	-$(LN) -f $(ROOTETCINITF) $@
71
72clean lint: $(SUBDIRS)
73
74clobber: $(SUBDIRS)	clobber_local
75
76clobber_local:
77	$(RM) $(CLOBBERFILES)
78
79#
80# For message catalogue file
81#
82_msg: $(SUBDIRS)
83	$(RM) $(POFILE)
84	cat $(POFILES) > $(POFILE)
85	$(RM) $(MSGDOMAIN)/$(POFILE)
86	cp $(POFILE) $(MSGDOMAIN)
87
88$(SUBDIRS): FRC
89	@cd $@; pwd; $(MAKE) $(TARGET)
90
91FRC:
92