Skip to content

Instantly share code, notes, and snippets.

@zeebo

zeebo/Makefile Secret

Created September 19, 2017 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeebo/b61e11d7c03302614df5337d175f7a74 to your computer and use it in GitHub Desktop.
Save zeebo/b61e11d7c03302614df5337d175f7a74 to your computer and use it in GitHub Desktop.
Kotlin Starter
fun main(args: Array<String>) {
println("hello world")
}
all:
/usr/local/kotlinc/bin/kotlinc main.kt -include-runtime -d main.jar
.PHONY: all
#!/bin/bash
exec java -jar main.jar
@zeebo
Copy link
Author

zeebo commented Sep 19, 2017

Sadly, one has to hardcode the path to kotlinc in the Makefile due to a bug in our environment. This bug should be fixed shortly, but until then, this should work, and I was able to solve a problem with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment