xref: /titanic_41/usr/src/cmd/vi/Makefile (revision 146832db19eb2048b216b5dd0ba4424c7d0dfd17)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# cmd/vi/Makefile
25
26SUBDIRS=	misc port
27TXTS=		PRESERVE README
28POFILES=        $(SUBDIRS:%=%/%.po)
29
30include ../Makefile.cmd
31#
32# For message catalogue file
33#
34POFILE= vi.po
35
36all:=		TARGET= all
37install:=	TARGET= install
38clean:=		TARGET= clean
39clobber:=	TARGET= clobber
40lint:=		TARGET= lint
41_msg:=          TARGET= catalog
42
43# this directory is made in ../../Targetdirs
44ROOTINITD= $(ROOTETC)/init.d
45
46ROOTLINK= $(ROOTETC)/rc2.d/S89PRESERVE
47
48ETCINITF= PRESERVE
49ROOTETCINITF= $(ETCINITF:%=$(ROOTINITD)/%)
50$(ROOTETCINITF):=	FILEMODE =	744
51
52$(ROOTINITD)/% : %
53	$(INS.file)
54
55.KEEP_STATE:
56
57all:	$(SUBDIRS)
58
59install: $(ETCINITF) $(SUBDIRS) $(ROOTETCINITF) $(ROOTLINK)
60
61$(ROOTLINK): $(ROOTETCINITF)
62	-$(RM) $@
63	-$(LN) -f $(ROOTETCINITF) $@
64
65clean lint: $(SUBDIRS)
66
67clobber: $(SUBDIRS)	clobber_local
68
69clobber_local:
70	$(RM) $(CLOBBERFILES)
71
72#
73# For message catalogue file
74#
75_msg: $(SUBDIRS)
76	$(RM) $(POFILE)
77	cat $(POFILES) > $(POFILE)
78	$(RM) $(MSGDOMAIN)/$(POFILE)
79	cp $(POFILE) $(MSGDOMAIN)
80
81$(SUBDIRS): FRC
82	@cd $@; pwd; $(MAKE) $(TARGET)
83
84FRC:
85