<commit_before>SHELL=/bin/bash

VERSION=1.0.0
RELEASE=0

GRAILSVERS=1.2.0
JETTYVERS=6.1.21

GRAILS_HOME=${BUILD_ROOT}/local/grails-$GRAILSVERS
#PATH=$PATH:$GRAILS_HOME/bin

GARGS += -Dgrails.project.work.dir=${PWD}/rundeckapp/work

GRAILS=grails $(GARGS)

RUNDECK_FILES=$(shell find rundeckapp/{src,test,grails-app,scripts} -name "*.java" -o -name "*.groovy" -o -name "*.gsp")
CORE_FILES=$(shell find core/src -name "*.java" -o -name "*/sh/*")


core = core/target/rundeck-core-$(VERSION).jar
war = rundeckapp/target/rundeck-$(VERSION).war
launcher = rundeckapp/target/rundeck-launcher-$(VERSION).jar

.PHONY: clean, rundeck

rundeck: $(war) $(launcher)
	@echo $(VERSION)-$(RELEASE)

rpm: $(war)
	cd packaging; $(MAKE) clean rpm

$(core): $(CORE_FILES)
	./build.sh rundeck_core

$(war): $(core) $(RUNDECK_FILES)
	./build.sh rundeckapp

$(launcher): $(core) $(RUNDECK_FILES)
	./build.sh rundeckapp

.PHONY: test
test: $(war)
	@echo Running TestSuite
	pushd rundeckapp; $(GRAILS) test-app; popd
	
clean:
	rm $(core) $(war) $(launcher)

	pushd rundeckapp; $(GRAILS) clean; popd

	@echo "Cleaning..."
	#clean localrepo of build artifacts
	#rm -r ${BUILD_ROOT}/localrepo/rundeck*

	#remove rundeckapp lib dir which may contain previously built jars
	rm rundeckapp/lib/rundeck*.jar

	#clean build target dirs
	rm -rf core/target
	rm -r rundeckapp/target

	#clean intermediate maven repo dirs of build artifacts
	rm -r maven/repository/rundeck*

	@echo "Cleaned local build artifacts and targets."
<commit_msg>Use my latest version of the Makefile<commit_after>SHELL=/bin/bash

VERSION=1.0.0
RELEASE=0

GRAILSVERS=1.2.0
JETTYVERS=6.1.21

GRAILS_HOME=${BUILD_ROOT}/local/grails-$GRAILSVERS
#PATH=$PATH:$GRAILS_HOME/bin

GARGS += -Dgrails.project.work.dir=${PWD}/rundeckapp/work

GRAILS=grails $(GARGS)

RUNDECK_FILES=$(shell find rundeckapp/{src,test,grails-app,scripts} -name "*.java" -o -name "*.groovy" -o -name "*.gsp")
CORE_FILES=$(shell find core/src -name "*.java" -o -name "*/sh/*")

core = core/target/rundeck-core-$(VERSION).jar
war = rundeckapp/target/rundeck-$(VERSION).war
launcher = rundeckapp/target/rundeck-launcher-$(VERSION).jar

.PHONY: clean, rundeck

rundeck: $(war) $(launcher)
	@echo $(VERSION)-$(RELEASE)

rpm: $(war)
	cd packaging; $(MAKE) clean rpm

$(core): $(CORE_FILES)
	./build.sh rundeck_core

$(war): $(core) $(RUNDECK_FILES)
	./build.sh rundeckapp

$(launcher): $(core) $(RUNDECK_FILES)
	./build.sh rundeckapp

.PHONY: test
test: $(war)
	@echo Running TestSuite
	pushd rundeckapp; $(GRAILS) test-app; popd
	
clean:
	rm $(core) $(war) $(launcher)

	pushd rundeckapp; $(GRAILS) clean; popd

	@echo "Cleaning..."
	#clean localrepo of build artifacts
	#rm -r ${BUILD_ROOT}/localrepo/rundeck*

	#remove rundeckapp lib dir which may contain previously built jars
	rm rundeckapp/lib/rundeck*.jar

	#clean build target dirs
	rm -rf core/target
	rm -r rundeckapp/target

	#clean intermediate maven repo dirs of build artifacts
	rm -r maven/repository/rundeck*

	@echo "Cleaned local build artifacts and targets."

{'fraction_non_alphanumeric': 0.15978870914493232, 'fraction_numerical': 0.007263123142951469, 'mean_word_length': 4.695488721804511, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2778081', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1159, 'n_words': 280}