17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 50c44d000Sstevel# Common Development and Distribution License (the "License"). 60c44d000Sstevel# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# Makefile for Java Print Manager client 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master 287c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateCLASSPATH= $(SRC)/cmd/print/printmgr 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateCLASSFILES = Constants.class \ 347c478bd9Sstevel@tonic-gate pmAuthOptions.class \ 357c478bd9Sstevel@tonic-gate pmHelpFrame.class \ 367c478bd9Sstevel@tonic-gate pmTop.class \ 377c478bd9Sstevel@tonic-gate pmResources.class \ 387c478bd9Sstevel@tonic-gate pmCopyright.class \ 397c478bd9Sstevel@tonic-gate pmUtility.class \ 407c478bd9Sstevel@tonic-gate pmCalls.class \ 417c478bd9Sstevel@tonic-gate pmLoad.class \ 427c478bd9Sstevel@tonic-gate pmDelete.class \ 437c478bd9Sstevel@tonic-gate pmAccess.class \ 447c478bd9Sstevel@tonic-gate pmButtonScreen.class \ 457c478bd9Sstevel@tonic-gate pmInstallScreen.class \ 467c478bd9Sstevel@tonic-gate pmInstallPrinter.class \ 477c478bd9Sstevel@tonic-gate pmOKCancelDialog.class \ 487c478bd9Sstevel@tonic-gate pmMessageDialog.class \ 497c478bd9Sstevel@tonic-gate pmLogin.class \ 507c478bd9Sstevel@tonic-gate pmLogDisplay.class \ 517c478bd9Sstevel@tonic-gate pmHelpDetailPanel.class \ 527c478bd9Sstevel@tonic-gate pmHelpContent.class \ 537c478bd9Sstevel@tonic-gate pmHelpController.class \ 547c478bd9Sstevel@tonic-gate pmHelpDetailPanel.class \ 557c478bd9Sstevel@tonic-gate pmHelpIndexPanel.class \ 567c478bd9Sstevel@tonic-gate pmHelpItem.class \ 577c478bd9Sstevel@tonic-gate pmHelpRepository.class \ 587c478bd9Sstevel@tonic-gate pmHelpSearchPanel.class \ 597c478bd9Sstevel@tonic-gate BST.class \ 607c478bd9Sstevel@tonic-gate BSTItem.class \ 617c478bd9Sstevel@tonic-gate pmGuiException.class \ 627c478bd9Sstevel@tonic-gate pmHelpException.class \ 637c478bd9Sstevel@tonic-gate pmAddAccessFailedException.class \ 647c478bd9Sstevel@tonic-gate pmAddPrinterFailedException.class \ 657c478bd9Sstevel@tonic-gate pmIncompleteFormException.class \ 667c478bd9Sstevel@tonic-gate pmLoginFailedException.class \ 677c478bd9Sstevel@tonic-gate pmModifyPrinterFailedException.class \ 687c478bd9Sstevel@tonic-gate pmPrinterExistsException.class \ 697c478bd9Sstevel@tonic-gate pmDeleteFailedException.class \ 707c478bd9Sstevel@tonic-gate pmMustBeRemoteServerException.class \ 717c478bd9Sstevel@tonic-gate pmUserCancelledException.class \ 727c478bd9Sstevel@tonic-gate pmNullSelectedPrinterException.class \ 737c478bd9Sstevel@tonic-gate pmNeedPPDCacheException.class \ 747c478bd9Sstevel@tonic-gate pmCacheMissingPPDException.class \ 757c478bd9Sstevel@tonic-gate pmFindFrame.class \ 767c478bd9Sstevel@tonic-gate pmAboutBox.class \ 777c478bd9Sstevel@tonic-gate pmFrame.class \ 787c478bd9Sstevel@tonic-gate pmButton.class \ 797c478bd9Sstevel@tonic-gate pmTextField.class \ 807c478bd9Sstevel@tonic-gate pmAuthOptions.class \ 817c478bd9Sstevel@tonic-gate pmOther.class 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gateJAVAFILES = $(CLASSFILES:.class=.java) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateMSGDIRS = $(ROOT)/usr/share/lib/locale \ 867c478bd9Sstevel@tonic-gate $(ROOT)/usr/share/lib/locale/com \ 877c478bd9Sstevel@tonic-gate $(ROOT)/usr/share/lib/locale/com/sun \ 887c478bd9Sstevel@tonic-gate $(ROOT)/usr/share/lib/locale/com/sun/admin \ 897c478bd9Sstevel@tonic-gate $(ROOT)/usr/share/lib/locale/com/sun/admin/pm \ 907c478bd9Sstevel@tonic-gate $(ROOT)/usr/share/lib/locale/com/sun/admin/pm/client 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gateMSGDIR = $(ROOT)/usr/share/lib/locale/com/sun/admin/pm/client 937c478bd9Sstevel@tonic-gateMSGJAVAFILES = pmResources.java pmHelpResources.java 947c478bd9Sstevel@tonic-gateMSGFILES = $(MSGJAVAFILES:%=$(MSGDIR)/%) 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gate$(MSGFILES):= FILEMODE = 644 977c478bd9Sstevel@tonic-gate 984d828b60SstevelCLEANFILES= *.class pmHelpResources.java pmCopyright.java \ 994d828b60Sstevel helptools/*.class helptools/parsehelp 1007c478bd9Sstevel@tonic-gateCLOBBERFILES= 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate# 1037c478bd9Sstevel@tonic-gate# raw-text help files 1047c478bd9Sstevel@tonic-gate# 1057c478bd9Sstevel@tonic-gateHELPFILES= ./raw-help/*.rawhlp 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate# 1087c478bd9Sstevel@tonic-gate# text file containing comments to be bound into the help resource bundle 1097c478bd9Sstevel@tonic-gate# 1107c478bd9Sstevel@tonic-gateHELP_COMMENTS=./help-l10n-comments.txt 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gateinstall all: pmCopyright.java $(CLASSFILES) help 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gatepmCopyright.java: pm_gen_copyright 1157c478bd9Sstevel@tonic-gate $(SH) ./pm_gen_copyright 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate# 1187c478bd9Sstevel@tonic-gate# pmHelpResources.java is generated by parsing raw help text 1197c478bd9Sstevel@tonic-gate# 1207c478bd9Sstevel@tonic-gatepmHelpResources.java: $(HELP_COMMENTS) \ 1217c478bd9Sstevel@tonic-gate $$(HELPFILES) \ 1227c478bd9Sstevel@tonic-gate helptools/parseMain.class \ 1237c478bd9Sstevel@tonic-gate helptools/parsehelp 1247c478bd9Sstevel@tonic-gate $(RM) pmHelpResources.* 1257c478bd9Sstevel@tonic-gate helptools/parsehelp -C $(HELP_COMMENTS) -D $(CLASSPATH) \ 1267c478bd9Sstevel@tonic-gate -J $(JAVA_ROOT) $(HELPFILES) 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gatehelp: pmHelpResources.class 1297c478bd9Sstevel@tonic-gate 1307c478bd9Sstevel@tonic-gate_msg: $(MSGDIRS) help $(MSGFILES) 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gate$(MSGDIR)/%: % 1337c478bd9Sstevel@tonic-gate $(INS.file) 1347c478bd9Sstevel@tonic-gate 1357c478bd9Sstevel@tonic-gate$(MSGDIRS): 1367c478bd9Sstevel@tonic-gate $(INS.dir) 1377c478bd9Sstevel@tonic-gate 1387c478bd9Sstevel@tonic-gatejstyle: 1397c478bd9Sstevel@tonic-gate jstyle $(JAVAFILES) 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gatelint: 1427c478bd9Sstevel@tonic-gateclean: 1437c478bd9Sstevel@tonic-gate $(RM) $(CLEANFILES) 1447c478bd9Sstevel@tonic-gateclobber: clean 145