Reputation: 347
I'm setting up a new build.gradle for build environment. So for that I want to convert the existing makefiles targets into gradle targets
The following code is of the makefile:
Default: Dest
@${ECHO} ""
@${ECHO} "Done building ${COMPONENT_NAME} $@."
Dest: Dest-Native
@${ECHO} ""
@${ECHO} "Done building ${COMPONENT_NAME} $@."
Clean: All-Dirs Clean-Native
All-Dirs :
@${ECHO} ""
@${ECHO} "Done building ${COMPONENT_NAME} $@."
Clean-Native :
@${ECHO} ""
@${ECHO} "Done building ${COMPONENT_NAME} $@."
Please help me in finding the solution.
Upvotes: 1
Views: 412
Reputation: 28644
check the official gradle tutorials:
https://docs.gradle.org/current/userguide/tutorial_using_tasks.html
the simple task definition:
task hello {
doLast {
println 'Hello world!'
}
}
task intro {
dependsOn hello
doLast {
println "I'm Gradle"
}
}
so the command line gradle intro
will execute hello
and intro
tasks
#a_gradle>gradle intro
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :hello
Hello world!
> Task :intro
I'm Gradle
Upvotes: 1