author | Yuri Pankov <yuri.pankov@nexenta.com> |
Tue, 30 Aug 2011 15:16:15 -0700 | |
changeset 13444 | c1ed50709bff |
parent 10207 | 87c40ea3fc4b |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
2660
1b2ba42db5f2
4520634 lpsched creates unused directories upon startup
jacobs
parents:
0
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
1b2ba42db5f2
4520634 lpsched creates unused directories upon startup
jacobs
parents:
0
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
0 | 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 |
# |
|
2660
1b2ba42db5f2
4520634 lpsched creates unused directories upon startup
jacobs
parents:
0
diff
changeset
|
21 |
|
0 | 22 |
# |
10207
87c40ea3fc4b
6864230 hiho, hiho, it'ch chtime for CH to go
jmcp <James.McPherson@Sun.COM>
parents:
3125
diff
changeset
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
0 | 24 |
# Use is subject to license terms. |
25 |
# |
|
13444
c1ed50709bff
294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
10207
diff
changeset
|
26 |
# Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
c1ed50709bff
294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
10207
diff
changeset
|
27 |
# |
0 | 28 |
|
29 |
include ./Makefile.lp |
|
30 |
||
13444
c1ed50709bff
294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
10207
diff
changeset
|
31 |
SUBDIRS = filter crontab lib cmd model |
0 | 32 |
|
33 |
MSGSUBDIRS = filter lib cmd model |
|
34 |
||
35 |
ROOTDIRS = \ |
|
36 |
$(ROOTLIBLP) \ |
|
37 |
$(ROOTLIBLP)/bin \ |
|
38 |
$(ROOTLIBLP)/model \ |
|
39 |
$(ROOTLIBLPLOCL) \ |
|
40 |
$(ROOTLIB)/print \ |
|
41 |
$(LPOWNSDIRS) |
|
42 |
LPOWNSDIRS = \ |
|
43 |
$(ROOTETCLP) \ |
|
44 |
$(ROOTETCLP)/classes \ |
|
45 |
$(ROOTETCLP)/forms \ |
|
46 |
$(ROOTETCLP)/interfaces \ |
|
47 |
$(ROOTETCLP)/printers \ |
|
48 |
$(ROOTETCLP)/pwheels \ |
|
49 |
$(ROOTETCLP)/ppd \ |
|
50 |
$(ROOTVAR)/lp \ |
|
51 |
$(ROOTVAR)/lp/logs \ |
|
52 |
$(ROOTVARSP)/lp \ |
|
53 |
$(ROOTVARSP)/lp/admins \ |
|
54 |
$(ROOTVARSP)/lp/requests \ |
|
55 |
$(ROOTVARSP)/lp/system |
|
56 |
||
57 |
SYMDIR1 = $(ROOTVARSP)/lp/admins/lp |
|
58 |
SYMDIR2 = $(ROOTVARSP)/lp/bin |
|
59 |
SYMDIR3 = $(ROOTVARSP)/lp/logs |
|
60 |
SYMDIR4 = $(ROOTETCLP)/logs |
|
61 |
SYMDIR5 = $(ROOTVARSP)/lp/model |
|
62 |
||
63 |
$(SYMDIR1) := SYMLNKDEST = ../../../../etc/lp |
|
64 |
$(SYMDIR2) := SYMLNKDEST = ../../../usr/lib/lp/bin |
|
65 |
$(SYMDIR3) := SYMLNKDEST = ../../lp/logs |
|
66 |
$(SYMDIR4) := SYMLNKDEST = ../../var/lp/logs |
|
67 |
$(SYMDIR5) := SYMLNKDEST = ../../../usr/lib/lp/model |
|
68 |
||
69 |
ROOTSYMLINKDIRS = $(SYMDIR1) $(SYMDIR2) $(SYMDIR3) $(SYMDIR4) $(SYMDIR5) |
|
70 |
||
71 |
$(ROOTVAR)/lp := DIRMODE = 775 |
|
72 |
$(ROOTVAR)/lp/logs := DIRMODE = 775 |
|
73 |
$(ROOTETCLP) := DIRMODE = 775 |
|
74 |
$(ROOTETCLP)/classes := DIRMODE = 775 |
|
75 |
$(ROOTETCLP)/forms := DIRMODE = 775 |
|
76 |
$(ROOTETCLP)/interfaces := DIRMODE = 775 |
|
77 |
$(ROOTETCLP)/printers := DIRMODE = 775 |
|
78 |
$(ROOTETCLP)/pwheels := DIRMODE = 775 |
|
79 |
$(ROOTETCLP)/ppd := DIRMODE = 775 |
|
80 |
$(ROOTVARSP)/lp := DIRMODE = 775 |
|
81 |
$(ROOTVARSP)/lp/admins := DIRMODE = 775 |
|
82 |
$(ROOTVARSP)/lp/requests := DIRMODE = 775 |
|
83 |
$(ROOTVARSP)/lp/system := DIRMODE = 775 |
|
84 |
$(ROOTLIB)/print := DIRMODE = 0755 |
|
85 |
||
86 |
POFILE= lp.po |
|
87 |
POFILES= lp_*.po |
|
88 |
||
89 |
.KEEP_STATE: |
|
90 |
||
91 |
all: $(TXTS) $(SUBDIRS) |
|
92 |
||
93 |
# |
|
94 |
# Each message catalog file is generated in each sub |
|
95 |
# directory and copied to the usr/src/cmd/lp/ directory. |
|
96 |
# Those message catalog files are consolidated into one |
|
97 |
# message catalog file. The consolidated one will be copied |
|
98 |
# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory. |
|
99 |
# |
|
100 |
||
101 |
_msg: $(MSGDOMAINPOFILE) |
|
102 |
||
103 |
$(POFILE): $(MSGSUBDIRS) pofile_POFILES |
|
104 |
||
105 |
install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS) |
|
106 |
||
107 |
clean strip lint: $(SUBDIRS) |
|
108 |
||
109 |
clobber: $(SUBDIRS) local_clobber |
|
110 |
||
111 |
local_clobber: |
|
112 |
$(RM) $(CLOBBERFILES) |
|
113 |
||
114 |
$(ROOTDIRS) : |
|
115 |
$(INS.dir) |
|
116 |
||
117 |
$(ROOTSYMLINKDIRS) : |
|
118 |
-$(RM) $@; $(SYMLINK) $(SYMLNKDEST) $@ |
|
119 |
||
120 |
$(SUBDIRS): FRC |
|
121 |
@cd $@; pwd; $(MAKE) $(TARGET) |
|
122 |
||
123 |
FRC: |
|
124 |
||
125 |
include $(SRC)/Makefile.msg.targ |