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