13d781bd6SAndre Fischer#************************************************************** 23d781bd6SAndre Fischer# 33d781bd6SAndre Fischer# Licensed to the Apache Software Foundation (ASF) under one 43d781bd6SAndre Fischer# or more contributor license agreements. See the NOTICE file 53d781bd6SAndre Fischer# distributed with this work for additional information 63d781bd6SAndre Fischer# regarding copyright ownership. The ASF licenses this file 73d781bd6SAndre Fischer# to you under the Apache License, Version 2.0 (the 83d781bd6SAndre Fischer# "License"); you may not use this file except in compliance 93d781bd6SAndre Fischer# with the License. You may obtain a copy of the License at 103d781bd6SAndre Fischer# 113d781bd6SAndre Fischer# http://www.apache.org/licenses/LICENSE-2.0 123d781bd6SAndre Fischer# 133d781bd6SAndre Fischer# Unless required by applicable law or agreed to in writing, 143d781bd6SAndre Fischer# software distributed under the License is distributed on an 153d781bd6SAndre Fischer# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 163d781bd6SAndre Fischer# KIND, either express or implied. See the License for the 173d781bd6SAndre Fischer# specific language governing permissions and limitations 183d781bd6SAndre Fischer# under the License. 193d781bd6SAndre Fischer# 203d781bd6SAndre Fischer#************************************************************** 213d781bd6SAndre Fischer 223d781bd6SAndre FischerPRJ=.. 233d781bd6SAndre Fischer 243d781bd6SAndre Fischer.INCLUDE : settings.mk 253d781bd6SAndre Fischer 26*ca80d05cSMatthias Seidelversion=4.2.0 27157f3d95SAndre Fischer 283d781bd6SAndre Fischer.IF "$(RAT_JAR_HOME)"=="BUILD" 293d781bd6SAndre Fischerrat_jar_home=$(CLASSDIR) 303d781bd6SAndre Fischer.ELSE 313d781bd6SAndre Fischerrat_jar_home=$(RAT_JAR_HOME) 323d781bd6SAndre Fischer.ENDIF 333d781bd6SAndre Fischer.IF "$(OS)"=="WNT" 343d781bd6SAndre Fischerrat_jar_home!:=$(shell cygpath -u $(rat_jar_home)) 353d781bd6SAndre Fischer.ENDIF 363d781bd6SAndre Fischer 373d781bd6SAndre Fischerrat_scan_output:=$(MISC)/rat-output.xml 383d781bd6SAndre Fischer.IF "$(OS)"=="WNT" 393d781bd6SAndre Fischerrat_scan_output!:=$(shell cygpath -m $(rat_scan_output)) 403d781bd6SAndre Fischer.ENDIF 413d781bd6SAndre Fischer 42157f3d95SAndre Fischerall : $(MISC)/aoo-$(version)_rat-scan-output.html 433d781bd6SAndre Fischer 443d781bd6SAndre Fischershow-excludes .PHONY : $(MISC)/excluded-files.txt 453d781bd6SAndre Fischer 46157f3d95SAndre Fischer$(MISC)/aoo-$(version)_rat-scan-output.html : $(MISC)/rat-scan-output.xml 473d781bd6SAndre Fischer java -jar $(OUTDIR)/bin/saxon9.jar -t -s:$< -xsl:rat-output-to-html.xsl -o:$@ -l:on -warnings:fatal 483d781bd6SAndre Fischer @echo 493d781bd6SAndre Fischer @echo Find rat scan report in $@ 503d781bd6SAndre Fischer 51b63233d8Sdamjan$(MISC)/rat-scan-output.xml .PHONY : rat-scan.xml $(SRC_ROOT)/rat-excludes 523d781bd6SAndre Fischer $(ANT) -f rat-scan.xml -DRAT_SCAN_OUTPUT=$@ -DRAT_JAR_HOME=$(rat_jar_home) 533d781bd6SAndre Fischer 543d781bd6SAndre Fischer$(MISC)/excluded-files.txt : $(MISC)/excluded-files-raw.txt 553d781bd6SAndre Fischer cat $< | sed 's/;/\n/g' > $@ 563d781bd6SAndre Fischer 573d781bd6SAndre Fischer$(MISC)/excluded-files-raw.txt : rat-scan.xml $(SRC_ROOT)/rat-excludes 583d781bd6SAndre Fischer $(ANT) -f rat-scan.xml -DEXCLUDED_FILES_OUTPUT=$@ -DEXCLUDED_SOLVER_OUTPUT=$@ \ 593d781bd6SAndre Fischer -DRAT_JAR_HOME=$(rat_jar_home) show-excluded-files 60