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=..$/..
25
26PRJNAME=migrationanalysis
27TARGET=driverdocs
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :	settings.mk
32
33# --- Files --------------------------------------------------------
34
35PAW_DOCDEST:=$(BIN)$/ProAnalysisWizard$/Resources
36PAW_DATDEST:=$(BIN)$/ProAnalysisWizard$/Resources$/lang
37
38PAW_DRIVER_DOCS:= \
39	$(PAW_DOCDEST)$/_OOoDocAnalysisExcelDriver.xls \
40	$(PAW_DOCDEST)$/_OOoDocAnalysisWordDriver.doc \
41	$(PAW_DOCDEST)$/_OOoDocAnalysisPPTDriver.ppt
42
43PAW_DRIVER_DOCS_SRC:= \
44	.$/PAW$/_OOoDocAnalysisExcelDriver.xls \
45	.$/PAW$/_OOoDocAnalysisWordDriver.doc \
46	.$/PAW$/_OOoDocAnalysisPPTDriver.ppt
47
48PAW_DAT_FILES= \
49	$(foreach,i,$(alllangiso) $(PAW_DATDEST)$/$i.dat)
50
51DAT_DATA_FILE=allstrings.ulf
52DAT_DON_FILE_PAW=$(MISC)$/$(DAT_DATA_FILE).paw
53
54ULFFILES=$(DAT_DATA_FILE)
55.IF "$(WITH_LANG)"!=""
56ULFDIR:=$(COMMONMISC)$/$(TARGET)
57.ELSE			# "$(WITH_LANG)"!=""
58ULFDIR:=.
59.ENDIF			# "$(WITH_LANG)"!=""
60
61COMMON_SRC:= \
62    .$/sources$/AnalysisDriver.bas \
63    .$/sources$/CollectedFiles.cls \
64    .$/sources$/CommonMigrationAnalyser.bas \
65    .$/sources$/CommonPreparation.bas \
66    .$/sources$/DocumentAnalysis.cls \
67    .$/sources$/FileTypeAssociation.cls \
68    .$/sources$/IssueInfo.cls \
69    .$/sources$/LocalizeResults.bas \
70    .$/sources$/PrepareInfo.cls \
71    .$/sources$/StringDataManager.cls \
72    .$/sources$/Stripped_OOoDocAnalysisExcelDriver.xls \
73    .$/sources$/Stripped_OOoDocAnalysisPPTDriver.ppt \
74    .$/sources$/Stripped_OOoDocAnalysisWordDriver.doc \
75    .$/sources$/common_res.bas \
76    .$/sources$/results_res.bas
77
78EXCEL_SRC:= \
79    .$/sources$/excel$/ApplicationSpecific.bas \
80    .$/sources$/excel$/MigrationAnalyser.cls \
81    .$/sources$/excel$/Preparation.bas \
82    .$/sources$/excel$/excel_res.bas
83
84PP_SRC:= \
85    .$/sources$/powerpoint$/ApplicationSpecific.bas \
86    .$/sources$/powerpoint$/MigrationAnalyser.cls \
87    .$/sources$/powerpoint$/Preparation.bas \
88    .$/sources$/powerpoint$/powerpoint_res.bas
89
90WORD_SRC:= \
91    .$/sources$/word$/ApplicationSpecific.bas \
92    .$/sources$/word$/MigrationAnalyser.cls \
93    .$/sources$/word$/Preparation.bas \
94    .$/sources$/word$/word_res.bas
95
96# --- Targets ------------------------------------------------------
97
98.INCLUDE :	target.mk
99
100ALLTAR : $(PAW_DRIVER_DOCS) $(DAT_DON_FILE_PAW)
101
102$(PAW_DRIVER_DOCS) : .$/PAW$/$$(@:f)
103	-$(MKDIRHIER) $(@:d)
104	$(COPY) .$/PAW$/$(@:f) $@
105
106$(PAW_DAT_FILES) : $(ULFDIR)$/$(DAT_DATA_FILE)
107	-$(MKDIRHIER) $(@:d)
108	$(TOUCH) $@
109
110$(DAT_DON_FILE_PAW) :  $(PAW_DAT_FILES)
111	@echo --------------------------------
112	@echo building $@
113	-$(MKDIRHIER) $(@:d)
114	@echo making  $(PAW_DAT_FILES)
115	$(PERL) ulf2dat.pl -i $(ULFDIR)$/$(DAT_DATA_FILE) $(PAW_DAT_FILES) && $(TOUCH) $@
116
117.IF "$(VB6_LOCATION)" != ""
118$(PAW_DRIVER_DOCS_SRC) : $(COMMON_SRC) $(EXCEL_SRC) $(PP_SRC) $(WORD_SRC)
119    @echo --------------------------------
120    @echo create driver docs
121    cscript CreateDriverDocs.wsf
122.ENDIF
123
124