xref: /titanic_41/usr/src/cmd/lp/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
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
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27include 	./Makefile.lp
28
29SUBDIRS =	filter crontab terminfo lib cmd model
30
31MSGSUBDIRS =	filter lib cmd model
32
33ROOTDIRS =					\
34		$(ROOTLIBLP)			\
35		$(ROOTLIBLP)/bin		\
36		$(ROOTLIBLP)/model		\
37		$(ROOTLIBLPLOCL)		\
38		$(ROOTLIB)/print		\
39		$(LPOWNSDIRS)
40LPOWNSDIRS =					\
41		$(ROOTETCLP)			\
42		$(ROOTETCLP)/classes		\
43		$(ROOTETCLP)/forms		\
44		$(ROOTETCLP)/interfaces		\
45		$(ROOTETCLP)/printers		\
46		$(ROOTETCLP)/pwheels		\
47		$(ROOTETCLP)/ppd		\
48		$(ROOTVAR)/lp			\
49		$(ROOTVAR)/lp/logs		\
50		$(ROOTVARSP)/lp			\
51		$(ROOTVARSP)/lp/admins		\
52		$(ROOTVARSP)/lp/requests 	\
53		$(ROOTVARSP)/lp/system
54
55SYMDIR1 =	$(ROOTVARSP)/lp/admins/lp
56SYMDIR2 =	$(ROOTVARSP)/lp/bin
57SYMDIR3 =	$(ROOTVARSP)/lp/logs
58SYMDIR4 =	$(ROOTETCLP)/logs
59SYMDIR5 =	$(ROOTVARSP)/lp/model
60
61$(SYMDIR1) :=	SYMLNKDEST =	../../../../etc/lp
62$(SYMDIR2) :=	SYMLNKDEST =	../../../usr/lib/lp/bin
63$(SYMDIR3) :=	SYMLNKDEST =	../../lp/logs
64$(SYMDIR4) :=	SYMLNKDEST =	../../var/lp/logs
65$(SYMDIR5) :=	SYMLNKDEST =	../../../usr/lib/lp/model
66
67ROOTSYMLINKDIRS =	$(SYMDIR1) $(SYMDIR2) $(SYMDIR3) $(SYMDIR4) $(SYMDIR5)
68
69$(ROOTVAR)/lp :=		DIRMODE = 775
70$(ROOTVAR)/lp/logs :=		DIRMODE = 775
71$(ROOTETCLP) :=			DIRMODE = 775
72$(ROOTETCLP)/classes :=		DIRMODE = 775
73$(ROOTETCLP)/forms :=		DIRMODE = 775
74$(ROOTETCLP)/interfaces :=	DIRMODE = 775
75$(ROOTETCLP)/printers :=	DIRMODE = 775
76$(ROOTETCLP)/pwheels :=		DIRMODE = 775
77$(ROOTETCLP)/ppd :=		DIRMODE = 775
78$(ROOTVARSP)/lp :=		DIRMODE = 775
79$(ROOTVARSP)/lp/admins :=	DIRMODE = 775
80$(ROOTVARSP)/lp/requests :=	DIRMODE = 775
81$(ROOTVARSP)/lp/system :=	DIRMODE = 775
82$(ROOTLIB)/print :=		DIRMODE = 0755
83
84POFILE= lp.po
85POFILES= lp_*.po
86
87.KEEP_STATE:
88
89all:	$(TXTS) $(SUBDIRS)
90
91#
92# Each message catalog file is generated in each sub
93# directory and copied to the usr/src/cmd/lp/ directory.
94# Those message catalog files are consolidated into one
95# message catalog file.  The consolidated one will be copied
96# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
97#
98
99_msg:	$(MSGDOMAINPOFILE)
100
101$(POFILE):	$(MSGSUBDIRS) pofile_POFILES
102
103install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
104
105clean strip lint: $(SUBDIRS)
106
107clobber: $(SUBDIRS) local_clobber
108
109local_clobber:
110	$(RM) $(CLOBBERFILES)
111
112$(ROOTDIRS) :
113	$(INS.dir)
114
115$(ROOTSYMLINKDIRS) :
116	-$(RM) $@; $(SYMLINK) $(SYMLNKDEST) $@
117
118$(SUBDIRS):	FRC
119	@cd $@; pwd; $(MAKE) $(TARGET)
120
121FRC:
122
123include $(SRC)/Makefile.msg.targ
124