jl165 merging heads
[LibreOffice.git] / testgraphical / source / makefile.mk
blob619fd7786f93ec0a8cc97e8df44b3aa573467866
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=..
30 PRJNAME=gfxcmp
31 TARGET=notargetyet
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 # --- Targets ------------------------------------------------------
39 .INCLUDE : target.mk
41 # call with PDF=1 to use office pdf exporter instead of the XPrinter API
42 .IF "$(PDF)"!=""
43 CREATORTYPE="-creatortype" pdf
44 .ELSE
45 CREATORTYE="-creatortype" ps
46 .ENDIF
48 .IF "$(SHOW)"!=""
49 P_SHOW=-show
50 .ENDIF
53 # call with PREPARE=1 to only create new reference files
54 # copy these files by hand into the corresponding directories
55 .IF "$(PREPARE)"!=""
56 PREPAREONLY="-prepareonly" 1
57 .ELSE
58 PREPAREONLY=
59 .ENDIF
61 .IF "$(DOCUMENTPOOL)"==""
62 DOCUMENTPOOL=$PRJ$/document-pool
63 .ENDIF
65 # PERLDEBUG=-d:ptkdb
66 ALLTAR: selftest
67 # pwd
68 # $(PERL) $(PERLDEBUG) compare.pl -MAJOR $(WORK_STAMP) -MINOR $(UPDMINOR) -cwsname "$(CWS_WORK_STAMP)"
69 # $(PERL) $(PERLDEBUG) compare.pl -pool singletest
71 # $(PRJ)$/util$/makefile.pmk contains ALLTAR stuff
73 # selftest is the default run through at the moment and use pdf export to create output.
74 # dmake
75 selftest:
76 $(PERL) $(PERLDEBUG) compare.pl -creatortype pdf $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW)
78 # selftest_ps is like the default run through but use always postscript print out
79 # dmake selftest_ps
80 selftest_ps:
81 $(PERL) $(PERLDEBUG) compare.pl -creatortype ps $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW)
85 # The follows are demonstration targets, DO NOT DELETE
89 # dmake demo SHOW=1
90 demo:
91 $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -pool $@ $(P_SHOW)
93 # failtest is a demonstration of a failure, with SHOW=1 it should open a java windows which shows 3 pictures,
94 # the current document, the reference document and the difference between both.
95 # dmake failtest SHOW=1
96 # dmake failtest PREPARE=1
97 # This test will most the time fail, it is just a demonstration.
98 failtest:
99 $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force -pool demo -document CurrentTime.ods $(P_SHOW)
101 # manual runs through all documents found in document-pool
102 # dmake manual
103 # dmake manual PDF=1 SHOW=1
104 # dmake manual PREPARE=1 PDF=1
105 # should help to create a lot of references at one time.
106 manual:
107 $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force $(P_SHOW)
109 # msoffice:
110 # $(PERL) $(PERLDEBUG) compare.pl -creatortype msoffice $(PREPAREONLY) -pool msoffice -document calc_cellformat_import_biff8.xls $(P_SHOW)
112 clean: