1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=migrationanalysis
27cdf0e10cSrcweirTARGET=driverdocs
28cdf0e10cSrcweir
29cdf0e10cSrcweir# --- Settings -----------------------------------------------------
30cdf0e10cSrcweir
31cdf0e10cSrcweir.INCLUDE :	settings.mk
32cdf0e10cSrcweir
33cdf0e10cSrcweir# --- Files --------------------------------------------------------
34cdf0e10cSrcweir
35cdf0e10cSrcweirPAW_DOCDEST:=$(BIN)$/ProAnalysisWizard$/Resources
36cdf0e10cSrcweirPAW_DATDEST:=$(BIN)$/ProAnalysisWizard$/Resources$/lang
37cdf0e10cSrcweir
38cdf0e10cSrcweirPAW_DRIVER_DOCS:= \
39cdf0e10cSrcweir	$(PAW_DOCDEST)$/_OOoDocAnalysisExcelDriver.xls \
40cdf0e10cSrcweir	$(PAW_DOCDEST)$/_OOoDocAnalysisWordDriver.doc \
41cdf0e10cSrcweir	$(PAW_DOCDEST)$/_OOoDocAnalysisPPTDriver.ppt
42cdf0e10cSrcweir
43cdf0e10cSrcweirPAW_DRIVER_DOCS_SRC:= \
44cdf0e10cSrcweir	.$/PAW$/_OOoDocAnalysisExcelDriver.xls \
45cdf0e10cSrcweir	.$/PAW$/_OOoDocAnalysisWordDriver.doc \
46cdf0e10cSrcweir	.$/PAW$/_OOoDocAnalysisPPTDriver.ppt
47cdf0e10cSrcweir
48cdf0e10cSrcweirPAW_DAT_FILES= \
49cdf0e10cSrcweir	$(foreach,i,$(alllangiso) $(PAW_DATDEST)$/$i.dat)
50cdf0e10cSrcweir
51cdf0e10cSrcweirDAT_DATA_FILE=allstrings.ulf
52cdf0e10cSrcweirDAT_DON_FILE_PAW=$(MISC)$/$(DAT_DATA_FILE).paw
53cdf0e10cSrcweir
54cdf0e10cSrcweirULFFILES=$(DAT_DATA_FILE)
55cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
56cdf0e10cSrcweirULFDIR:=$(COMMONMISC)$/$(TARGET)
57cdf0e10cSrcweir.ELSE			# "$(WITH_LANG)"!=""
58cdf0e10cSrcweirULFDIR:=.
59cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
60cdf0e10cSrcweir
61cdf0e10cSrcweirCOMMON_SRC:= \
62cdf0e10cSrcweir    .$/sources$/AnalysisDriver.bas \
63cdf0e10cSrcweir    .$/sources$/CollectedFiles.cls \
64cdf0e10cSrcweir    .$/sources$/CommonMigrationAnalyser.bas \
65cdf0e10cSrcweir    .$/sources$/CommonPreparation.bas \
66cdf0e10cSrcweir    .$/sources$/DocumentAnalysis.cls \
67cdf0e10cSrcweir    .$/sources$/FileTypeAssociation.cls \
68cdf0e10cSrcweir    .$/sources$/IssueInfo.cls \
69cdf0e10cSrcweir    .$/sources$/LocalizeResults.bas \
70cdf0e10cSrcweir    .$/sources$/PrepareInfo.cls \
71cdf0e10cSrcweir    .$/sources$/StringDataManager.cls \
72cdf0e10cSrcweir    .$/sources$/Stripped_OOoDocAnalysisExcelDriver.xls \
73cdf0e10cSrcweir    .$/sources$/Stripped_OOoDocAnalysisPPTDriver.ppt \
74cdf0e10cSrcweir    .$/sources$/Stripped_OOoDocAnalysisWordDriver.doc \
75cdf0e10cSrcweir    .$/sources$/common_res.bas \
76cdf0e10cSrcweir    .$/sources$/results_res.bas
77cdf0e10cSrcweir
78cdf0e10cSrcweirEXCEL_SRC:= \
79cdf0e10cSrcweir    .$/sources$/excel$/ApplicationSpecific.bas \
80cdf0e10cSrcweir    .$/sources$/excel$/MigrationAnalyser.cls \
81cdf0e10cSrcweir    .$/sources$/excel$/Preparation.bas \
82cdf0e10cSrcweir    .$/sources$/excel$/excel_res.bas
83cdf0e10cSrcweir
84cdf0e10cSrcweirPP_SRC:= \
85cdf0e10cSrcweir    .$/sources$/powerpoint$/ApplicationSpecific.bas \
86cdf0e10cSrcweir    .$/sources$/powerpoint$/MigrationAnalyser.cls \
87cdf0e10cSrcweir    .$/sources$/powerpoint$/Preparation.bas \
88cdf0e10cSrcweir    .$/sources$/powerpoint$/powerpoint_res.bas
89cdf0e10cSrcweir
90cdf0e10cSrcweirWORD_SRC:= \
91cdf0e10cSrcweir    .$/sources$/word$/ApplicationSpecific.bas \
92cdf0e10cSrcweir    .$/sources$/word$/MigrationAnalyser.cls \
93cdf0e10cSrcweir    .$/sources$/word$/Preparation.bas \
94cdf0e10cSrcweir    .$/sources$/word$/word_res.bas
95cdf0e10cSrcweir
96cdf0e10cSrcweir# --- Targets ------------------------------------------------------
97cdf0e10cSrcweir
98cdf0e10cSrcweir.INCLUDE :	target.mk
99cdf0e10cSrcweir
100cdf0e10cSrcweirALLTAR : $(PAW_DRIVER_DOCS) $(DAT_DON_FILE_PAW)
101cdf0e10cSrcweir
102cdf0e10cSrcweir$(PAW_DRIVER_DOCS) : .$/PAW$/$$(@:f)
103cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
104cdf0e10cSrcweir	$(COPY) .$/PAW$/$(@:f) $@
105cdf0e10cSrcweir
106cdf0e10cSrcweir$(PAW_DAT_FILES) : $(ULFDIR)$/$(DAT_DATA_FILE)
107cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
108cdf0e10cSrcweir	$(TOUCH) $@
109cdf0e10cSrcweir
110cdf0e10cSrcweir$(DAT_DON_FILE_PAW) :  $(PAW_DAT_FILES)
111cdf0e10cSrcweir	@echo --------------------------------
112cdf0e10cSrcweir	@echo building $@
113cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
114cdf0e10cSrcweir	@echo making  $(PAW_DAT_FILES)
115cdf0e10cSrcweir	$(PERL) ulf2dat.pl -i $(ULFDIR)$/$(DAT_DATA_FILE) $(PAW_DAT_FILES) && $(TOUCH) $@
116cdf0e10cSrcweir
117cdf0e10cSrcweir.IF "$(VB6_LOCATION)" != ""
118cdf0e10cSrcweir$(PAW_DRIVER_DOCS_SRC) : $(COMMON_SRC) $(EXCEL_SRC) $(PP_SRC) $(WORD_SRC)
119cdf0e10cSrcweir    @echo --------------------------------
120cdf0e10cSrcweir    @echo create driver docs
121cdf0e10cSrcweir    cscript CreateDriverDocs.wsf
122cdf0e10cSrcweir.ENDIF
123cdf0e10cSrcweir
124