xref: /titanic_52/usr/src/cmd/abi/appcert/etc/Makefile (revision 9512fe850e98fdd448c638ca63fdd92a8a510255)
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) 1999-2001 by Sun Microsystems, Inc.
24# All rights reserved.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28# cmd/abi/appcert/etc/Makefile
29#
30
31include $(SRC)/cmd/Makefile.cmd
32
33SUFFIXES += .in
34
35.KEEP_STATE:
36
37ROOTLIBAPPCERT= $(ROOT)/usr/lib/abi/appcert
38
39ETC_FILES = etc.alt etc.scoped etc.tweaks etc.warn
40MESSAGES = etc.warn.po
41ETC_FILES_SRC = $(ETC_FILES:%=%.in)
42
43DEST_FILES = $(ETC_FILES:%=$(ROOTLIBAPPCERT)/%)
44
45CLEANFILES=	$(MESSAGES) $(ETC_FILES)
46
47install :=	FILEMODE=	0444
48install :=	DIRMODE=	0755
49install :=	OWNER=		root
50install :=	GROUP=		bin
51
52all: $(ETC_FILES)
53
54install: all .WAIT $(DEST_FILES)
55
56$(ROOTLIBAPPCERT)/%:   %
57	$(INS.file)
58
59%: %.in
60	$(SED) -e 's,gettext("\([^"]*\)"),\1,' $< > $@
61
62_msg: $(MSGDOMAIN) $(MESSAGES)
63	$(CP) $(MESSAGES) $(MSGDOMAIN)
64
65$(MSGDOMAIN):
66	$(INS.dir)
67
68%.po: %.in
69	$(XGETTEXT) $(XGETFLAGS) $<
70	$(RM) $@
71	$(SED) "/^domain/d" messages.po > $@
72	$(RM) messages.po
73
74lint:
75
76clean:
77	-$(RM) $(CLEANFILES)
78
79clobber:	clean
80
81