source: trunk/openjdk/jdk/make/javax/print/Makefile

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 3.0 KB
Line 
1#
2# Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# This code is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation. Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22# or visit www.oracle.com if you need additional information or have any
23# questions.
24#
25
26#
27# Makefile for building all of JPS (Java Print Service) API
28#
29
30BUILDDIR = ../..
31PACKAGE = javax.print
32PRODUCT = sun
33include $(BUILDDIR)/common/Defs.gmk
34
35#
36# Files to compile
37#
38AUTO_FILES_JAVA_DIRS = javax/print sun/print
39
40#
41# Files that just need cp.
42#
43SERVICEDIR = $(CLASSBINDIR)/META-INF/services
44
45FILES_copy = \
46 $(SERVICEDIR)/javax.print.StreamPrintServiceFactory \
47 $(SERVICEDIR)/javax.print.PrintServiceLookup
48
49FILES_mkdirs = \
50 $(CLASSBINDIR)/META-INF \
51 $(CLASSBINDIR)/META-INF/services
52
53FILES_copydirs = \
54 $(FILES_mkdirs)
55
56#
57# Resources
58#
59LOCALE_SET_DEFINITION = jre
60RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/print/resources/serviceui.properties
61
62#
63# Rules
64#
65include $(BUILDDIR)/common/Classes.gmk
66
67#
68# Rules that copy files.
69#
70
71build: copy-files properties
72
73_PSFONTPROPS = \
74 psfontj2d.properties \
75 psfont.properties.ja \
76
77PSFONTPROPS_SRC = $(SHARE_SRC)/classes/sun/print
78PSFONTPROPS = $(_PSFONTPROPS:%=$(LIBDIR)/%)
79
80_RESOURCES_PRINT = \
81 orientLandscape.png \
82 orientPortrait.png \
83 orientRevLandscape.png \
84 orientRevPortrait.png \
85 oneside.png \
86 duplex.png \
87 tumble.png
88
89
90RESDIR_PRINT = $(CLASSBINDIR)/sun/print/resources
91RESOURCES_PRINT = $(_RESOURCES_PRINT:%=$(RESDIR_PRINT)/%)
92
93$(LIBDIR)/%: $(PSFONTPROPS_SRC)/% $(FONTPROPS)
94 $(install-file)
95
96$(RESDIR_PRINT)/%: $(SHARE_SRC)/classes/sun/print/resources/%
97 $(install-file)
98
99properties: $(LIBDIR) $(PSFONTPROPS) $(RESOURCES_PRINT)
100
101properties.clean:
102 $(RM) $(PSFONTPROPS)
103 $(RM) -r $(RESDIR_PRINT)
104
105copy-files: $(FILES_copy)
106
107$(SERVICEDIR)/%: $(PLATFORM_SRC)/classes/sun/print/services/%
108 $(install-file)
109
110#
111# Clean up internal-use-only package.
112#
113clean::
114 $(RM) -r $(CLASSDESTDIR)/javax/print $(CLASSDESTDIR)/sun/print
115
116.PHONY: copy-files
Note: See TracBrowser for help on using the repository browser.