xref: /aoo4110/main/odk/examples/java/makefile.mk (revision b1cdbd2c)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..
25PRJNAME=odk
26TARGET=copying
27
28#----------------------------------------------------------------
29.INCLUDE: settings.mk
30.INCLUDE: $(PRJ)$/util$/makefile.pmk
31#----------------------------------------------------------------
32
33#----------------------------------------------------
34# this makefile is only used for copying the example
35# files into the SDK
36#----------------------------------------------------
37
38DRAWING_FILES= \
39	$(DESTDIRJAVAEXAMPLES)$/Drawing$/SDraw.java \
40	$(DESTDIRJAVAEXAMPLES)$/Drawing$/Makefile
41
42SPREADSHEET_FILES= \
43	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/SCalc.java		   	\
44	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/EuroAdaption.java		\
45	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/ChartTypeChange.java   	\
46	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/CalcAddins.java	   	\
47	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/CalcAddins.ods	   	\
48	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/XCalcAddins.idl	   	\
49	$(DESTDIRJAVAEXAMPLES)$/Spreadsheet$/Makefile
50
51TEXT_FILES= \
52	$(DESTDIRJAVAEXAMPLES)$/Text$/SWriter.java	   		\
53	$(DESTDIRJAVAEXAMPLES)$/Text$/StyleInitialization.java 	\
54	$(DESTDIRJAVAEXAMPLES)$/Text$/TextDocumentStructure.java 	\
55	$(DESTDIRJAVAEXAMPLES)$/Text$/TextReplace.java 		\
56	$(DESTDIRJAVAEXAMPLES)$/Text$/BookmarkInsertion.java 	\
57	$(DESTDIRJAVAEXAMPLES)$/Text$/HardFormatting.java 	\
58	$(DESTDIRJAVAEXAMPLES)$/Text$/StyleCreation.java  	\
59	$(DESTDIRJAVAEXAMPLES)$/Text$/WriterSelector.java  	\
60	$(DESTDIRJAVAEXAMPLES)$/Text$/GraphicsInserter.java  	\
61	$(DESTDIRJAVAEXAMPLES)$/Text$/oo_smiley.gif  	\
62	$(DESTDIRJAVAEXAMPLES)$/Text$/Makefile
63
64DOCUMENTHANDLING_FILES= \
65	$(DESTDIRJAVAEXAMPLES)$/DocumentHandling$/DocumentConverter.java	\
66	$(DESTDIRJAVAEXAMPLES)$/DocumentHandling$/DocumentLoader.java	\
67	$(DESTDIRJAVAEXAMPLES)$/DocumentHandling$/DocumentPrinter.java	\
68	$(DESTDIRJAVAEXAMPLES)$/DocumentHandling$/DocumentSaver.java	\
69	$(DESTDIRJAVAEXAMPLES)$/DocumentHandling$/Makefile \
70	$(DESTDIRJAVAEXAMPLES)$/DocumentHandling$/test$/test1.odt
71
72CONVERTERSERVLET_FILES= \
73	$(DESTDIRJAVAEXAMPLES)$/ConverterServlet$/ConverterServlet.html	\
74	$(DESTDIRJAVAEXAMPLES)$/ConverterServlet$/ConverterServlet.java	\
75	$(DESTDIRJAVAEXAMPLES)$/ConverterServlet$/web.xml	\
76	$(DESTDIRJAVAEXAMPLES)$/ConverterServlet$/Makefile			\
77	$(DESTDIRJAVAEXAMPLES)$/ConverterServlet$/README
78
79EMBEDDEDOBJECT_FILES= \
80	$(DESTDIRJAVAEXAMPLES)$/EmbedDocument$/EmbeddedObject$/EmbeddedObject.xcu \
81	$(DESTDIRJAVAEXAMPLES)$/EmbedDocument$/EmbeddedObject$/OwnEmbeddedObject.java \
82	$(DESTDIRJAVAEXAMPLES)$/EmbedDocument$/EmbeddedObject$/EditorFrame.java  \
83	$(DESTDIRJAVAEXAMPLES)$/EmbedDocument$/EmbeddedObject$/Makefile \
84	$(DESTDIRJAVAEXAMPLES)$/EmbedDocument$/EmbeddedObject$/OwnEmbeddedObjectFactory.java
85
86INSPECTOR_FILES= \
87	$(DESTDIRJAVAEXAMPLES)$/Inspector$/Inspector.jpg \
88	$(DESTDIRJAVAEXAMPLES)$/Inspector$/InspectorThumbnail.jpg \
89	$(DESTDIRJAVAEXAMPLES)$/Inspector$/Inspector.uno.xml \
90	$(DESTDIRJAVAEXAMPLES)$/Inspector$/Inspector.java \
91	$(DESTDIRJAVAEXAMPLES)$/Inspector$/Makefile \
92	$(DESTDIRJAVAEXAMPLES)$/Inspector$/TestInspector.java \
93	$(DESTDIRJAVAEXAMPLES)$/Inspector$/XInstanceInspector.idl \
94	$(DESTDIRJAVAEXAMPLES)$/Inspector$/InstanceInspector.idl \
95	$(DESTDIRJAVAEXAMPLES)$/Inspector$/InstanceInspectorTest.odt
96
97NOTESACCESS_FILES= \
98	$(DESTDIRJAVAEXAMPLES)$/NotesAccess$/NotesAccess.java \
99	$(DESTDIRJAVAEXAMPLES)$/NotesAccess$/Makefile \
100	$(DESTDIRJAVAEXAMPLES)$/NotesAccess$/Stocks.nsf
101
102TODO_FILES= \
103	$(DESTDIRJAVAEXAMPLES)$/ToDo$/ToDo.java \
104	$(DESTDIRJAVAEXAMPLES)$/ToDo$/ToDo.ods  \
105	$(DESTDIRJAVAEXAMPLES)$/ToDo$/ToDo.uno.xml  \
106	$(DESTDIRJAVAEXAMPLES)$/ToDo$/ToDo.idl  \
107	$(DESTDIRJAVAEXAMPLES)$/ToDo$/XToDo.idl  \
108	$(DESTDIRJAVAEXAMPLES)$/ToDo$/Makefile
109
110MINIMALCOMPONENT_FILES= \
111	$(DESTDIRJAVAEXAMPLES)$/MinimalComponent$/MinimalComponent.idl \
112	$(DESTDIRJAVAEXAMPLES)$/MinimalComponent$/MinimalComponent.java\
113	$(DESTDIRJAVAEXAMPLES)$/MinimalComponent$/MinimalComponent.uno.xml \
114	$(DESTDIRJAVAEXAMPLES)$/MinimalComponent$/TestMinimalComponent.java\
115	$(DESTDIRJAVAEXAMPLES)$/MinimalComponent$/Makefile
116
117PROPERTYSET_FILES= \
118	$(DESTDIRJAVAEXAMPLES)$/PropertySet$/PropTest.java \
119	$(DESTDIRJAVAEXAMPLES)$/PropertySet$/PropertySet.odt \
120	$(DESTDIRJAVAEXAMPLES)$/PropertySet$/Makefile
121
122DIR_FILE_LIST= \
123	$(DRAWING_FILES) \
124	$(SPREADSHEET_FILES) \
125	$(TEXT_FILES) \
126	$(DOCUMENTHANDLING_FILES) \
127	$(CONVERTERSERVLET_FILES) \
128	$(EMBEDDEDOBJECT_FILES) \
129	$(INSPECTOR_FILES) \
130	$(NOTESACCESS_FILES) \
131	$(TODO_FILES) \
132	$(MINIMALCOMPONENT_FILES) \
133	$(PROPERTYSET_FILES)
134
135DIR_DIRECTORY_LIST=$(uniq $(DIR_FILE_LIST:d))
136DIR_CREATE_FLAG=$(MISC)$/ex_java_dirs_created.txt
137DIR_FILE_FLAG=$(MISC)$/ex_java_files.txt
138
139#--------------------------------------------------
140# TARGETS
141#--------------------------------------------------
142all : \
143	$(DIR_FILE_LIST) \
144	$(DIR_FILE_FLAG)
145
146#--------------------------------------------------
147# use global rules
148#--------------------------------------------------
149.INCLUDE: $(PRJ)$/util$/odk_rules.pmk
150
151
152