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