PACKAGE_NAME = example
SOURCES = `find ./src/* -type f`

all:
	rm -f dist/$(PACKAGE_NAME)
	echo '#!/bin/bash\n\njava -jar $$(dirname $$0)/$(PACKAGE_NAME).jar'  > dist/$(PACKAGE_NAME)
	chmod +x dist/$(PACKAGE_NAME)
	kotlinc $(SOURCES) -include-runtime -d dist/$(PACKAGE_NAME).jar 