| #************************************************************** | |
| # | |
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| # | |
| #************************************************************** | |
| PRJ=.. | |
| PRJNAME=gfxcmp | |
| TARGET=notargetyet | |
| # --- Settings ----------------------------------------------------- | |
| .INCLUDE : settings.mk | |
| # --- Targets ------------------------------------------------------ | |
| .INCLUDE : target.mk | |
| # call with PDF=1 to use office pdf exporter instead of the XPrinter API | |
| .IF "$(PDF)"!="" | |
| CREATORTYPE="-creatortype" pdf | |
| .ELSE | |
| CREATORTYE="-creatortype" ps | |
| .ENDIF | |
| .IF "$(SHOW)"!="" | |
| P_SHOW=-show | |
| .ENDIF | |
| # call with PREPARE=1 to only create new reference files | |
| # copy these files by hand into the corresponding directories | |
| .IF "$(PREPARE)"!="" | |
| PREPAREONLY="-prepareonly" 1 | |
| .ELSE | |
| PREPAREONLY= | |
| .ENDIF | |
| .IF "$(DOCUMENTPOOL)"=="" | |
| DOCUMENTPOOL=$PRJ$/document-pool | |
| .ENDIF | |
| # PERLDEBUG=-d:ptkdb | |
| ALLTAR: selftest | |
| # pwd | |
| # $(PERL) $(PERLDEBUG) compare.pl -MAJOR $(WORK_STAMP) -MINOR $(UPDMINOR) -cwsname "$(CWS_WORK_STAMP)" | |
| # $(PERL) $(PERLDEBUG) compare.pl -pool singletest | |
| # $(PRJ)$/util$/makefile.pmk contains ALLTAR stuff | |
| # selftest is the default run through at the moment and use pdf export to create output. | |
| # dmake | |
| selftest: | |
| $(PERL) $(PERLDEBUG) compare.pl -creatortype pdf $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW) | |
| # selftest_ps is like the default run through but use always postscript print out | |
| # dmake selftest_ps | |
| selftest_ps: | |
| $(PERL) $(PERLDEBUG) compare.pl -creatortype ps $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW) | |
| # | |
| # | |
| # The follows are demonstration targets, DO NOT DELETE | |
| # | |
| # | |
| # dmake demo SHOW=1 | |
| demo: | |
| $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -pool $@ $(P_SHOW) | |
| # failtest is a demonstration of a failure, with SHOW=1 it should open a java windows which shows 3 pictures, | |
| # the current document, the reference document and the difference between both. | |
| # dmake failtest SHOW=1 | |
| # dmake failtest PREPARE=1 | |
| # This test will most the time fail, it is just a demonstration. | |
| failtest: | |
| $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force -pool demo -document CurrentTime.ods $(P_SHOW) | |
| # manual runs through all documents found in document-pool | |
| # dmake manual | |
| # dmake manual PDF=1 SHOW=1 | |
| # dmake manual PREPARE=1 PDF=1 | |
| # should help to create a lot of references at one time. | |
| manual: | |
| $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force $(P_SHOW) | |
| # msoffice: | |
| # $(PERL) $(PERLDEBUG) compare.pl -creatortype msoffice $(PREPAREONLY) -pool msoffice -document calc_cellformat_import_biff8.xls $(P_SHOW) | |
| clean: |