update dev300-m58
[ooovba.git] / migrationanalysis / src / driver_docs / makefile.mk
blobbc337be70099e6acc458ec9bc8e76dca9972851e
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.8.34.3 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
34 PRJNAME=migrationanalysis
35 TARGET=driverdocs
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
41 # --- Files --------------------------------------------------------
43 PAW_DOCDEST:=$(BIN)$/ProAnalysisWizard$/Resources
44 PAW_DATDEST:=$(BIN)$/ProAnalysisWizard$/Resources$/lang
46 PAW_DRIVER_DOCS:= \
47 $(PAW_DOCDEST)$/_OOoDocAnalysisExcelDriver.xls \
48 $(PAW_DOCDEST)$/_OOoDocAnalysisWordDriver.doc \
49 $(PAW_DOCDEST)$/_OOoDocAnalysisPPTDriver.ppt
51 PAW_DRIVER_DOCS_SRC:= \
52 .$/PAW$/_OOoDocAnalysisExcelDriver.xls \
53 .$/PAW$/_OOoDocAnalysisWordDriver.doc \
54 .$/PAW$/_OOoDocAnalysisPPTDriver.ppt
56 PAW_DAT_FILES= \
57 $(foreach,i,$(alllangiso) $(PAW_DATDEST)$/$i.dat)
59 DAT_DATA_FILE=allstrings.ulf
60 DAT_DON_FILE_PAW=$(MISC)$/$(DAT_DATA_FILE).paw
62 ULFFILES=$(DAT_DATA_FILE)
63 .IF "$(WITH_LANG)"!=""
64 ULFDIR:=$(COMMONMISC)$/$(TARGET)
65 .ELSE # "$(WITH_LANG)"!=""
66 ULFDIR:=.
67 .ENDIF # "$(WITH_LANG)"!=""
69 COMMON_SRC:= \
70 .$/sources$/AnalysisDriver.bas \
71 .$/sources$/CollectedFiles.cls \
72 .$/sources$/CommonMigrationAnalyser.bas \
73 .$/sources$/CommonPreparation.bas \
74 .$/sources$/DocumentAnalysis.cls \
75 .$/sources$/FileTypeAssociation.cls \
76 .$/sources$/IssueInfo.cls \
77 .$/sources$/LocalizeResults.bas \
78 .$/sources$/PrepareInfo.cls \
79 .$/sources$/StringDataManager.cls \
80 .$/sources$/Stripped_OOoDocAnalysisExcelDriver.xls \
81 .$/sources$/Stripped_OOoDocAnalysisPPTDriver.ppt \
82 .$/sources$/Stripped_OOoDocAnalysisWordDriver.doc \
83 .$/sources$/common_res.bas \
84 .$/sources$/results_res.bas
86 EXCEL_SRC:= \
87 .$/sources$/excel$/ApplicationSpecific.bas \
88 .$/sources$/excel$/MigrationAnalyser.cls \
89 .$/sources$/excel$/Preparation.bas \
90 .$/sources$/excel$/excel_res.bas
92 PP_SRC:= \
93 .$/sources$/powerpoint$/ApplicationSpecific.bas \
94 .$/sources$/powerpoint$/MigrationAnalyser.cls \
95 .$/sources$/powerpoint$/Preparation.bas \
96 .$/sources$/powerpoint$/powerpoint_res.bas
98 WORD_SRC:= \
99 .$/sources$/word$/ApplicationSpecific.bas \
100 .$/sources$/word$/MigrationAnalyser.cls \
101 .$/sources$/word$/Preparation.bas \
102 .$/sources$/word$/word_res.bas
104 # --- Targets ------------------------------------------------------
106 .INCLUDE : target.mk
108 ALLTAR : $(PAW_DRIVER_DOCS) $(DAT_DON_FILE_PAW)
110 $(PAW_DRIVER_DOCS) : .$/PAW$/$$(@:f)
111 -$(MKDIRHIER) $(@:d)
112 $(COPY) .$/PAW$/$(@:f) $@
114 $(PAW_DAT_FILES) : $(ULFDIR)$/$(DAT_DATA_FILE)
115 -$(MKDIRHIER) $(@:d)
116 $(TOUCH) $@
118 $(DAT_DON_FILE_PAW) : $(PAW_DAT_FILES)
119 @echo --------------------------------
120 @echo building $@
121 -$(MKDIRHIER) $(@:d)
122 @echo making $(PAW_DAT_FILES)
123 $(PERL) ulf2dat.pl -i $(ULFDIR)$/$(DAT_DATA_FILE) $(PAW_DAT_FILES) && $(TOUCH) $@
125 .IF "$(VB6_LOCATION)" != ""
126 $(PAW_DRIVER_DOCS_SRC) : $(COMMON_SRC) $(EXCEL_SRC) $(PP_SRC) $(WORD_SRC)
127 @echo --------------------------------
128 @echo create driver docs
129 cscript CreateDriverDocs.wsf
130 .ENDIF