xref: /trunk/main/testgraphical/source/makefile.mk (revision 7871dc3e)
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=gfxcmp
27TARGET=notargetyet
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :  settings.mk
32
33# --- Targets ------------------------------------------------------
34
35.INCLUDE :  target.mk
36
37# call with PDF=1 to use office pdf exporter instead of the XPrinter API
38.IF "$(PDF)"!=""
39    CREATORTYPE="-creatortype" pdf
40.ELSE
41    CREATORTYE="-creatortype" ps
42.ENDIF
43
44.IF "$(SHOW)"!=""
45    P_SHOW=-show
46.ENDIF
47
48
49# call with PREPARE=1 to only create new reference files
50# copy these files by hand into the corresponding directories
51.IF "$(PREPARE)"!=""
52    PREPAREONLY="-prepareonly" 1
53.ELSE
54    PREPAREONLY=
55.ENDIF
56
57.IF "$(DOCUMENTPOOL)"==""
58	DOCUMENTPOOL=$PRJ$/document-pool
59.ENDIF
60
61# PERLDEBUG=-d:ptkdb
62ALLTAR: selftest
63#	pwd
64# $(PERL) $(PERLDEBUG) compare.pl -MAJOR $(WORK_STAMP) -MINOR $(UPDMINOR) -cwsname "$(CWS_WORK_STAMP)"
65#	$(PERL) $(PERLDEBUG) compare.pl -pool singletest
66
67# $(PRJ)$/util$/makefile.pmk contains ALLTAR stuff
68
69# selftest is the default run through at the moment and use pdf export to create output.
70# dmake
71selftest:
72	$(PERL) $(PERLDEBUG) compare.pl -creatortype pdf $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW)
73
74# selftest_ps is like the default run through but use always postscript print out
75# dmake selftest_ps
76selftest_ps:
77	$(PERL) $(PERLDEBUG) compare.pl -creatortype ps $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW)
78
79#
80#
81# The follows are demonstration targets, DO NOT DELETE
82#
83#
84
85# dmake demo SHOW=1
86demo:
87	$(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -pool $@ $(P_SHOW)
88
89# failtest is a demonstration of a failure, with SHOW=1 it should open a java windows which shows 3 pictures,
90# the current document, the reference document and the difference between both.
91# dmake failtest SHOW=1
92# dmake failtest PREPARE=1
93# This test will most the time fail, it is just a demonstration.
94failtest:
95	$(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force -pool demo -document CurrentTime.ods $(P_SHOW)
96
97# manual runs through all documents found in document-pool
98# dmake manual
99# dmake manual PDF=1 SHOW=1
100# dmake manual PREPARE=1 PDF=1
101# should help to create a lot of references at one time.
102manual:
103	$(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force $(P_SHOW)
104
105# msoffice:
106# 	$(PERL) $(PERLDEBUG) compare.pl -creatortype msoffice $(PREPAREONLY) -pool msoffice -document calc_cellformat_import_biff8.xls $(P_SHOW)
107
108clean:
109