cmd-inet/usr.sbin: remove -Wno-implicit-function-declaration
[unleashed.git] / usr / src / msg / Makefile
bloba6bf34d5bc7a3b9ae08744dbd79513c2247ee17a
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 include ../Makefile.master
29 ROOTDIR=$(ROOT)/usr/lib/locale/C
30 ROOTMSGDIR=$(ROOTDIR)/LC_MESSAGES
31 ROOTTIMEDIR=$(ROOTDIR)/LC_TIME
34 # These files either need no build rules, because they're under SCM
35 # in the current working directory, or they have explicit build rules
36 # that aren't handled by the $(MSGDIRFILES_REMOTE) rule below.
38 MSGDIRFILES_LOCAL= \
39 SUNW_OST_LINFO \
40 uxlibc.src
43 # These files live somewhere else in the build tree (ie not in the
44 # directory usr/src/msg). Each entry here should be accompanied by an
45 # explicit action telling where the file lives. That action should
46 # consist only of a dependency, but no action--the action is supplied
47 # by the $(MSGDIRFILES_REMOTE) rule below.
49 MSGDIRFILES_REMOTE= \
50 mailx.help \
51 priv_names
53 MSGDIRFILES= $(MSGDIRFILES_LOCAL) $(MSGDIRFILES_REMOTE)
55 ROOTMSGDIRFILES=$(MSGDIRFILES:%=$(ROOTMSGDIR)/%)
57 PO_LABEL=' The following lines are contents of '
59 .KEEP_STATE:
61 all: $(MSGDIRFILES)
63 install: all _msg
65 clobber:
66 $(RM) $(MSGDIRFILES_REMOTE)
69 # The _msg target gathers the output of the top-level _msg target into
70 # text-domain-specific message files under the ROOTMSGDIR for packaging.
71 # It also processes time-message files in subdirectories of the LC_TIME
72 # directory and copies or creates other files needed by this package.
75 $(ROOTTIMEDIR) $(ROOTMSGDIR):
76 $(INS.dir)
78 $(ROOTMSGDIR)/%: $(ROOTMSGDIR) %
79 $(INS.file)
81 priv_names: $(ROOT)/etc/security/priv_names
83 mailx.help: $(SRC)/cmd/mailx/misc/mailx.help
85 $(MSGDIRFILES_REMOTE):
86 $(RM) $@; $(CP) $? $@
88 _msg: $(ROOTMSGDIR) .WAIT $(ROOTTIMEDIR) $(ROOTMSGDIRFILES) FRC
89 [ -d $(MSGROOT) ] || $(ECHO) "need to build _msg in $(SRC)"
90 (cd $(MSGROOT); \
91 for d in SUNW*;\
92 do \
93 x="`$(ECHO) $$d/*.po`"; \
94 y="$$d/"'*.po'; \
95 $(RM) $(ROOTMSGDIR)/$$d.po; \
96 if test "$$x" != "$$y"; then \
97 for f in $$d/*.po; \
98 do \
99 $(ECHO) '#'$(PO_LABEL)$$f >> $(ROOTMSGDIR)/$$d.po; \
100 $(SED) -e '/^# msg/d' -e '/^domain/d' $$f >> \
101 $(ROOTMSGDIR)/$$d.po; \
102 done; \
103 $(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/$$d.po; \
104 fi; \
105 x="`$(ECHO) $$d/*.msg`"; \
106 y="$$d/"'*.msg'; \
107 if test "$$x" != "$$y"; then \
108 for f in $$d/*.msg; \
109 do \
110 x="`basename $$f`"; \
111 $(RM) $(ROOTMSGDIR)/$$x; \
112 $(CP) $$f $(ROOTMSGDIR); \
113 $(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/$$x; \
114 done; \
115 fi; \
116 done)
117 (cd $(MSGROOT)/LC_TIME; \
118 for d in SUNW*;\
119 do \
120 $(RM) $(ROOTTIMEDIR)/$$d.po; \
121 for f in $$d/*.po; \
122 do \
123 $(ECHO) '#'$(PO_LABEL)$$f >> $(ROOTTIMEDIR)/$$d.po; \
124 $(SED) -e '/^# msg/d' -e '/^domain/d' $$f >> \
125 $(ROOTTIMEDIR)/$$d.po; \
126 done; \
127 $(CHMOD) $(FILEMODE) $(ROOTTIMEDIR)/$$d.po; \
128 done)
130 FRC: