Makefile revision 2127:ba8e8855927c
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# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# Makefile for Java Print Manager client
28#
29include		$(SRC)/Makefile.master
30include         $(SRC)/cmd/Makefile.cmd
31
32
33CLASSPATH=	$(SRC)/cmd/print/printmgr
34
35CLASSFILES = 	Constants.class \
36		pmAuthOptions.class \
37		pmHelpFrame.class \
38		pmTop.class \
39		pmResources.class \
40		pmCopyright.class \
41		pmUtility.class \
42		pmCalls.class \
43		pmLoad.class \
44		pmDelete.class \
45		pmAccess.class \
46		pmButtonScreen.class \
47		pmInstallScreen.class \
48		pmInstallPrinter.class \
49		pmOKCancelDialog.class \
50		pmMessageDialog.class \
51		pmLogin.class \
52		pmLogDisplay.class \
53		pmHelpDetailPanel.class \
54		pmHelpContent.class \
55		pmHelpController.class \
56		pmHelpDetailPanel.class \
57		pmHelpIndexPanel.class \
58		pmHelpItem.class \
59		pmHelpRepository.class \
60		pmHelpSearchPanel.class \
61		BST.class \
62		BSTItem.class \
63		pmGuiException.class \
64		pmHelpException.class \
65		pmAddAccessFailedException.class \
66		pmAddPrinterFailedException.class \
67		pmIncompleteFormException.class \
68		pmLoginFailedException.class \
69		pmModifyPrinterFailedException.class \
70		pmPrinterExistsException.class \
71		pmDeleteFailedException.class \
72		pmMustBeRemoteServerException.class \
73		pmUserCancelledException.class \
74		pmNullSelectedPrinterException.class \
75		pmNeedPPDCacheException.class \
76		pmCacheMissingPPDException.class \
77		pmFindFrame.class \
78		pmAboutBox.class \
79		pmFrame.class \
80		pmButton.class \
81		pmTextField.class \
82	        pmAuthOptions.class \
83		pmOther.class
84
85JAVAFILES =	$(CLASSFILES:.class=.java)
86
87MSGDIRS =	$(ROOT)/usr/share/lib/locale \
88		$(ROOT)/usr/share/lib/locale/com \
89		$(ROOT)/usr/share/lib/locale/com/sun \
90		$(ROOT)/usr/share/lib/locale/com/sun/admin \
91		$(ROOT)/usr/share/lib/locale/com/sun/admin/pm \
92		$(ROOT)/usr/share/lib/locale/com/sun/admin/pm/client
93
94MSGDIR =	$(ROOT)/usr/share/lib/locale/com/sun/admin/pm/client
95MSGJAVAFILES =	pmResources.java pmHelpResources.java
96MSGFILES =	$(MSGJAVAFILES:%=$(MSGDIR)/%)
97
98$(MSGFILES):=	OWNER = root
99$(MSGFILES):=	GROUP = lp
100$(MSGFILES):=	FILEMODE = 644
101
102CLEANFILES=	*.class pmHelpResources.java pmCopyright.java
103CLOBBERFILES=
104
105#
106# raw-text help files
107#
108HELPFILES= ./raw-help/*.rawhlp
109
110#
111# text file containing comments to be bound into the help resource bundle
112#
113HELP_COMMENTS=./help-l10n-comments.txt
114
115install all: pmCopyright.java $(CLASSFILES) help
116
117pmCopyright.java: pm_gen_copyright
118	$(SH) ./pm_gen_copyright
119
120#
121# pmHelpResources.java is generated by parsing raw help text
122#
123pmHelpResources.java:	$(HELP_COMMENTS) \
124			$$(HELPFILES) \
125			helptools/parseMain.class \
126			helptools/parsehelp
127	$(RM) pmHelpResources.*
128	helptools/parsehelp -C $(HELP_COMMENTS) -D $(CLASSPATH) \
129		-J $(JAVA_ROOT) $(HELPFILES)
130
131help: pmHelpResources.class
132
133_msg:	$(MSGDIRS) help $(MSGFILES)
134
135$(MSGDIR)/%: %
136	$(INS.file)
137
138$(MSGDIRS):
139	$(INS.dir)
140
141jstyle:
142	jstyle $(JAVAFILES)
143
144lint:
145clean:
146	$(RM) $(CLEANFILES)
147	cd helptools; $(MAKE) clean
148clobber: clean
149