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
38
39OFFICEDEV_FILES=\
40	$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/ContextMenuInterceptor.java \
41	$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Makefile \
42	$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/MenuElement.java \
43	$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Number_Formats.java \
44	$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/OfficeConnect.java
45
46DESTCLIPBOARD=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Clipboard
47CLIPBOARD_FILES=\
48	$(DESTCLIPBOARD)$/Clipboard.java \
49	$(DESTCLIPBOARD)$/ClipboardListener.java \
50	$(DESTCLIPBOARD)$/ClipboardOwner.java \
51	$(DESTCLIPBOARD)$/Makefile \
52	$(DESTCLIPBOARD)$/TextTransferable.java
53
54DESTDESKTOPENV=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/DesktopEnvironment
55DESKTOPENV_FILES=\
56	$(DESTDESKTOPENV)$/nativelib$/unix$/exports.dxp \
57	$(DESTDESKTOPENV)$/nativelib$/unix$/Makefile \
58	$(DESTDESKTOPENV)$/nativelib$/unix$/nativeview.c \
59	$(DESTDESKTOPENV)$/nativelib$/unix$/nativeview.h \
60	$(DESTDESKTOPENV)$/nativelib$/windows$/exports.dxp \
61	$(DESTDESKTOPENV)$/nativelib$/windows$/Makefile \
62	$(DESTDESKTOPENV)$/nativelib$/windows$/nativeview.c \
63	$(DESTDESKTOPENV)$/nativelib$/windows$/nativeview.h \
64	$(DESTDESKTOPENV)$/CustomizeView.java \
65	$(DESTDESKTOPENV)$/Desk.java \
66	$(DESTDESKTOPENV)$/DocumentView.java \
67	$(DESTDESKTOPENV)$/FunctionHelper.java \
68	$(DESTDESKTOPENV)$/Install.txt \
69	$(DESTDESKTOPENV)$/Interceptor.java \
70	$(DESTDESKTOPENV)$/IOnewayLink.java \
71	$(DESTDESKTOPENV)$/IShutdownListener.java \
72	$(DESTDESKTOPENV)$/JavaWindowPeerFake.java \
73	$(DESTDESKTOPENV)$/Makefile \
74	$(DESTDESKTOPENV)$/NativeView.java \
75	$(DESTDESKTOPENV)$/OfficeConnect.java \
76	$(DESTDESKTOPENV)$/OnewayExecutor.java \
77	$(DESTDESKTOPENV)$/StatusListener.java \
78	$(DESTDESKTOPENV)$/StatusView.java \
79	$(DESTDESKTOPENV)$/ViewContainer.java
80
81DESTASCIIFILTER=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/AsciiFilter
82ASCIIFILTER_FILES=\
83	$(DESTASCIIFILTER)$/AsciiReplaceFilter.java \
84	$(DESTASCIIFILTER)$/FilterOptions.java \
85	$(DESTASCIIFILTER)$/Makefile \
86	$(DESTASCIIFILTER)$/TypeDetection.xcu
87
88DESTFILTERDETECTION=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilterDetection
89FILTERDETECTION_FILES=\
90	$(DESTFILTERDETECTION)$/fdcomp.cxx \
91	$(DESTFILTERDETECTION)$/filterdetect.cxx \
92	$(DESTFILTERDETECTION)$/filterdetect.hxx \
93	$(DESTFILTERDETECTION)$/FlatXmlTypeDetection.uno.xml \
94	$(DESTFILTERDETECTION)$/FlatXmlTypeDetection.xcu \
95	$(DESTFILTERDETECTION)$/Makefile
96
97DESTFLATXMLCPP=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilter_cpp
98FLATXMLCPP_FILES=\
99	$(DESTFLATXMLCPP)$/FlatXml.cxx \
100	$(DESTFLATXMLCPP)$/FlatXmlFilter_cpp.uno.xml \
101	$(DESTFLATXMLCPP)$/Makefile \
102	$(DESTFLATXMLCPP)$/FlatXmlFilter_cpp.xcu
103
104DESTFLATXMLJAVA=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilter_java
105FLATXMLJAVA_FILES=\
106	$(DESTFLATXMLJAVA)$/Makefile \
107	$(DESTFLATXMLJAVA)$/FlatXmlFilter_java.xcu \
108	$(DESTFLATXMLJAVA)$/FlatXml.java
109
110DESTLINGUISTIC=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Linguistic
111LINGUISTIC_FILES=\
112	$(DESTLINGUISTIC)$/LinguisticExamples.java \
113	$(DESTLINGUISTIC)$/Makefile \
114	$(DESTLINGUISTIC)$/OneInstanceFactory.java \
115	$(DESTLINGUISTIC)$/PropChgHelper.java \
116	$(DESTLINGUISTIC)$/PropChgHelper_Hyph.java \
117	$(DESTLINGUISTIC)$/PropChgHelper_Spell.java \
118	$(DESTLINGUISTIC)$/SampleHyphenator.java \
119	$(DESTLINGUISTIC)$/SampleSpellChecker.java \
120	$(DESTLINGUISTIC)$/SampleThesaurus.java \
121	$(DESTLINGUISTIC)$/XHyphenatedWord_impl.java \
122	$(DESTLINGUISTIC)$/XMeaning_impl.java \
123	$(DESTLINGUISTIC)$/XPossibleHyphens_impl.java \
124	$(DESTLINGUISTIC)$/XSpellAlternatives_impl.java
125
126DESTPATHSETTINGS=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/PathSettings
127PATHSETTINGS_FILES=\
128	$(DESTPATHSETTINGS)$/Makefile \
129	$(DESTPATHSETTINGS)$/PathSettingsTest.java
130
131DESTPATHSUBSTITUTION=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/PathSubstitution
132PATHSUBSTITUTION_FILES=\
133	$(DESTPATHSUBSTITUTION)$/Makefile \
134	$(DESTPATHSUBSTITUTION)$/PathSubstitutionTest.java
135
136DESTTERMINATIONTEST=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/TerminationTest
137TERMINATION_FILES=\
138	$(DESTTERMINATIONTEST)$/Makefile \
139	$(DESTTERMINATIONTEST)$/TerminateListener.java \
140	$(DESTTERMINATIONTEST)$/TerminationTest.java
141
142DESTDISABLECOMMANDS=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/DisableCommands
143DISABLECOMMANDS_FILES=\
144	$(DESTDISABLECOMMANDS)$/Makefile \
145	$(DESTDISABLECOMMANDS)$/DisableCommandsTest.java
146
147DIR_FILE_LIST= \
148	$(OFFICEDEV_FILES) \
149	$(CLIPBOARD_FILES) \
150	$(DESKTOPENV_FILES) \
151	$(ASCIIFILTER_FILES) \
152	$(FILTERDETECTION_FILES) \
153	$(FLATXMLCPP_FILES) \
154	$(FLATXMLJAVA_FILES) \
155	$(LINGUISTIC_FILES) \
156	$(PATHSETTINGS_FILES) \
157	$(PATHSUBSTITUTION_FILES) \
158	$(TERMINATION_FILES) \
159	$(DISABLECOMMANDS_FILES)
160
161DIR_DIRECTORY_LIST=$(uniq $(DIR_FILE_LIST:d))
162DIR_CREATE_FLAG=$(MISC)$/devguide_officedev_dirs_created.txt
163DIR_FILE_FLAG=$(MISC)$/devguide_officedev.txt
164
165#--------------------------------------------------
166# TARGETS
167#--------------------------------------------------
168all : \
169	$(DIR_FILE_LIST) \
170	$(DIR_FILE_FLAG)
171
172#--------------------------------------------------
173# use global rules
174#--------------------------------------------------
175.INCLUDE: $(PRJ)$/util$/odk_rules.pmk
176
177