xref: /illumos-gate/usr/src/cmd/lp/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate#
4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate# with the License.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate# and limitations under the License.
13*7c478bd9Sstevel@tonic-gate#
14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate#
20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate#
22*7c478bd9Sstevel@tonic-gate#
23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate#
26*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
27*7c478bd9Sstevel@tonic-gate#
28*7c478bd9Sstevel@tonic-gate
29*7c478bd9Sstevel@tonic-gateinclude 	./Makefile.lp
30*7c478bd9Sstevel@tonic-gate
31*7c478bd9Sstevel@tonic-gateSUBDIRS =	etc filter crontab terminfo lib cmd model
32*7c478bd9Sstevel@tonic-gate
33*7c478bd9Sstevel@tonic-gateMSGSUBDIRS =	filter lib cmd model
34*7c478bd9Sstevel@tonic-gate
35*7c478bd9Sstevel@tonic-gateROOTDIRS =					\
36*7c478bd9Sstevel@tonic-gate		$(ROOTLIBLP)			\
37*7c478bd9Sstevel@tonic-gate		$(ROOTLIBLP)/bin		\
38*7c478bd9Sstevel@tonic-gate		$(ROOTLIBLP)/model		\
39*7c478bd9Sstevel@tonic-gate		$(ROOTLIBLPLOCL)		\
40*7c478bd9Sstevel@tonic-gate		$(ROOTLIB)/print		\
41*7c478bd9Sstevel@tonic-gate		$(ROOTLIB)/print/bsd-adaptor	\
42*7c478bd9Sstevel@tonic-gate		$(LPOWNSDIRS)
43*7c478bd9Sstevel@tonic-gateLPOWNSDIRS =					\
44*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)			\
45*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)/classes		\
46*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)/forms		\
47*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)/interfaces		\
48*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)/printers		\
49*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)/pwheels		\
50*7c478bd9Sstevel@tonic-gate		$(ROOTETCLP)/ppd		\
51*7c478bd9Sstevel@tonic-gate		$(ROOTVAR)/lp			\
52*7c478bd9Sstevel@tonic-gate		$(ROOTVAR)/lp/logs		\
53*7c478bd9Sstevel@tonic-gate		$(ROOTVARSP)/lp			\
54*7c478bd9Sstevel@tonic-gate		$(ROOTVARSP)/lp/admins		\
55*7c478bd9Sstevel@tonic-gate		$(ROOTVARSP)/lp/requests 	\
56*7c478bd9Sstevel@tonic-gate		$(ROOTVARSP)/lp/system
57*7c478bd9Sstevel@tonic-gate
58*7c478bd9Sstevel@tonic-gateSYMDIR1 =	$(ROOTVARSP)/lp/admins/lp
59*7c478bd9Sstevel@tonic-gateSYMDIR2 =	$(ROOTVARSP)/lp/bin
60*7c478bd9Sstevel@tonic-gateSYMDIR3 =	$(ROOTVARSP)/lp/logs
61*7c478bd9Sstevel@tonic-gateSYMDIR4 =	$(ROOTETCLP)/logs
62*7c478bd9Sstevel@tonic-gateSYMDIR5 =	$(ROOTVARSP)/lp/model
63*7c478bd9Sstevel@tonic-gate
64*7c478bd9Sstevel@tonic-gate$(SYMDIR1) :=	SYMLNKDEST =	../../../../etc/lp
65*7c478bd9Sstevel@tonic-gate$(SYMDIR2) :=	SYMLNKDEST =	../../../usr/lib/lp/bin
66*7c478bd9Sstevel@tonic-gate$(SYMDIR3) :=	SYMLNKDEST =	../../lp/logs
67*7c478bd9Sstevel@tonic-gate$(SYMDIR4) :=	SYMLNKDEST =	../../var/lp/logs
68*7c478bd9Sstevel@tonic-gate$(SYMDIR5) :=	SYMLNKDEST =	../../../usr/lib/lp/model
69*7c478bd9Sstevel@tonic-gate
70*7c478bd9Sstevel@tonic-gateROOTSYMLINKDIRS =	$(SYMDIR1) $(SYMDIR2) $(SYMDIR3) $(SYMDIR4) $(SYMDIR5)
71*7c478bd9Sstevel@tonic-gate
72*7c478bd9Sstevel@tonic-gate$(ROOTVAR)/lp :=		DIRMODE = 775
73*7c478bd9Sstevel@tonic-gate$(ROOTVAR)/lp/logs :=		DIRMODE = 775
74*7c478bd9Sstevel@tonic-gate$(ROOTETCLP) :=			DIRMODE = 775
75*7c478bd9Sstevel@tonic-gate$(ROOTETCLP)/classes :=		DIRMODE = 775
76*7c478bd9Sstevel@tonic-gate$(ROOTETCLP)/forms :=		DIRMODE = 775
77*7c478bd9Sstevel@tonic-gate$(ROOTETCLP)/interfaces :=	DIRMODE = 775
78*7c478bd9Sstevel@tonic-gate$(ROOTETCLP)/printers :=	DIRMODE = 775
79*7c478bd9Sstevel@tonic-gate$(ROOTETCLP)/pwheels :=		DIRMODE = 775
80*7c478bd9Sstevel@tonic-gate$(ROOTETCLP)/ppd :=		DIRMODE = 775
81*7c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp :=		DIRMODE = 775
82*7c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp/admins :=	DIRMODE = 775
83*7c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp/requests :=	DIRMODE = 775
84*7c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp/system :=	DIRMODE = 775
85*7c478bd9Sstevel@tonic-gate$(LPOWNSDIRS) :=		OWNER = lp
86*7c478bd9Sstevel@tonic-gate$(LPOWNSDIRS) :=		GROUP = lp
87*7c478bd9Sstevel@tonic-gate$(ROOTLIB)/print :=		DIRMODE = 0755
88*7c478bd9Sstevel@tonic-gate$(ROOTLIB)/print/bsd-adaptor :=	DIRMODE = 0755
89*7c478bd9Sstevel@tonic-gate
90*7c478bd9Sstevel@tonic-gatePOFILE= lp.po
91*7c478bd9Sstevel@tonic-gatePOFILES= lp_*.po
92*7c478bd9Sstevel@tonic-gate
93*7c478bd9Sstevel@tonic-gate.KEEP_STATE:
94*7c478bd9Sstevel@tonic-gate
95*7c478bd9Sstevel@tonic-gateall:	$(TXTS) $(SUBDIRS)
96*7c478bd9Sstevel@tonic-gate
97*7c478bd9Sstevel@tonic-gate#
98*7c478bd9Sstevel@tonic-gate# Each message catalog file is generated in each sub
99*7c478bd9Sstevel@tonic-gate# directory and copied to the usr/src/cmd/lp/ directory.
100*7c478bd9Sstevel@tonic-gate# Those message catalog files are consolidated into one
101*7c478bd9Sstevel@tonic-gate# message catalog file.  The consolidated one will be copied
102*7c478bd9Sstevel@tonic-gate# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
103*7c478bd9Sstevel@tonic-gate#
104*7c478bd9Sstevel@tonic-gate
105*7c478bd9Sstevel@tonic-gate_msg:	$(MSGDOMAINPOFILE)
106*7c478bd9Sstevel@tonic-gate
107*7c478bd9Sstevel@tonic-gate$(POFILE):	$(MSGSUBDIRS) pofile_POFILES
108*7c478bd9Sstevel@tonic-gate
109*7c478bd9Sstevel@tonic-gateinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
110*7c478bd9Sstevel@tonic-gate
111*7c478bd9Sstevel@tonic-gateclean strip lint: $(SUBDIRS)
112*7c478bd9Sstevel@tonic-gate
113*7c478bd9Sstevel@tonic-gateclobber: $(SUBDIRS) local_clobber
114*7c478bd9Sstevel@tonic-gate
115*7c478bd9Sstevel@tonic-gatelocal_clobber:
116*7c478bd9Sstevel@tonic-gate	$(RM) $(CLOBBERFILES)
117*7c478bd9Sstevel@tonic-gate
118*7c478bd9Sstevel@tonic-gate$(ROOTDIRS) :
119*7c478bd9Sstevel@tonic-gate	$(INS.dir)
120*7c478bd9Sstevel@tonic-gate
121*7c478bd9Sstevel@tonic-gate$(ROOTSYMLINKDIRS) :
122*7c478bd9Sstevel@tonic-gate	-$(RM) $@; $(SYMLINK) $(SYMLNKDEST) $@
123*7c478bd9Sstevel@tonic-gate
124*7c478bd9Sstevel@tonic-gate$(SUBDIRS):	FRC
125*7c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
126*7c478bd9Sstevel@tonic-gate
127*7c478bd9Sstevel@tonic-gateFRC:
128*7c478bd9Sstevel@tonic-gate
129*7c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ
130