1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 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. 14# 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). 20# 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. 25# 26#************************************************************************* 27 28PRJ=.. 29 30PRJNAME=gfxcmp 31TARGET=notargetyet 32 33# --- Settings ----------------------------------------------------- 34 35.INCLUDE : settings.mk 36 37# --- Targets ------------------------------------------------------ 38 39.INCLUDE : target.mk 40 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 47 48.IF "$(SHOW)"!="" 49 P_SHOW=-show 50.ENDIF 51 52 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 60 61.IF "$(DOCUMENTPOOL)"=="" 62 DOCUMENTPOOL=$PRJ$/document-pool 63.ENDIF 64 65# PERLDEBUG=-d:ptkdb 66ALLTAR: selftest 67# pwd 68# $(PERL) $(PERLDEBUG) compare.pl -MAJOR $(WORK_STAMP) -MINOR $(UPDMINOR) -cwsname "$(CWS_WORK_STAMP)" 69# $(PERL) $(PERLDEBUG) compare.pl -pool singletest 70 71# $(PRJ)$/util$/makefile.pmk contains ALLTAR stuff 72 73# selftest is the default run through at the moment and use pdf export to create output. 74# dmake 75selftest: 76 $(PERL) $(PERLDEBUG) compare.pl -creatortype pdf $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW) 77 78# selftest_ps is like the default run through but use always postscript print out 79# dmake selftest_ps 80selftest_ps: 81 $(PERL) $(PERLDEBUG) compare.pl -creatortype ps $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW) 82 83# 84# 85# The follows are demonstration targets, DO NOT DELETE 86# 87# 88 89# dmake demo SHOW=1 90demo: 91 $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -pool $@ $(P_SHOW) 92 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. 98failtest: 99 $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force -pool demo -document CurrentTime.ods $(P_SHOW) 100 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. 106manual: 107 $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force $(P_SHOW) 108 109# msoffice: 110# $(PERL) $(PERLDEBUG) compare.pl -creatortype msoffice $(PREPAREONLY) -pool msoffice -document calc_cellformat_import_biff8.xls $(P_SHOW) 111 112clean: 113