2016-05-07 13:52:26 +02:00
|
|
|
|
|
|
|
function crystal.build {
|
|
|
|
write "${target}: ${src[@]} ${depends[$target]}"
|
2019-05-28 18:45:35 +02:00
|
|
|
write "\t@echo '${fg_bold[magenta]} CR > ${fg_bold[white]}$target${reset_color}'"
|
2016-05-07 13:52:26 +02:00
|
|
|
write "\t${Q}crystal ${src[@]} -o '${target}'"
|
|
|
|
|
|
|
|
write "\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
function crystal.install {
|
|
|
|
binary.install "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
function crystal.uninstall {
|
|
|
|
binary.uninstall "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
function crystal.clean {
|
2019-05-28 18:45:35 +02:00
|
|
|
write "${target}.clean:"
|
|
|
|
write "\t@echo '$(RM ${target})'"
|
|
|
|
write "\t${Q}rm -f ${target}"
|
|
|
|
write
|
2016-05-07 13:52:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function crystal.distfiles {
|
|
|
|
echo "${target}"
|
|
|
|
}
|
|
|
|
|