.PHONY: all clean csonar_facing all: kotlin_component.jar # For the sake of this example, target the JVM. The steps required to # create a CodeSonar-facing build for Kotlin are the same regardless of # the target platform. kotlin_component.jar: $(SRCDIR)/kotlin_component.kt kotlinc "$(SRCDIR)/kotlin_component.kt" -d kotlin_component.jar # Invoke codesonar kotlin_scan.py to analyze the Kotlin source code with detekt, # then import the SARIF results and the source file into the project. csonar_facing: $(SRCDIR)/kotlin_component.kt "$(CSONAR)"/codesonar/bin/codesonar kotlin_scan.py \ "$(SRCDIR)/kotlin_component.kt" clean: rm *.jar