Crystal support improved.
This commit is contained in:
parent
7d15fbb3d3
commit
0b4028e979
4
Makefile
4
Makefile
@ -1,5 +1,5 @@
|
|||||||
PACKAGE = 'build_zsh'
|
PACKAGE = 'build_zsh'
|
||||||
VERSION = '0.3.1'
|
VERSION = '0.4.0'
|
||||||
|
|
||||||
PREFIX := /usr/local
|
PREFIX := /usr/local
|
||||||
BINDIR := $(PREFIX)/bin
|
BINDIR := $(PREFIX)/bin
|
||||||
@ -285,7 +285,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
|
|||||||
$(PACKAGE)-$(VERSION)/Makefile
|
$(PACKAGE)-$(VERSION)/Makefile
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo ' :: build_zsh-0.3.1'
|
@echo ' :: build_zsh-0.4.0'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo 'Generic targets:'
|
@echo 'Generic targets:'
|
||||||
@echo ' - help Prints this help message.'
|
@echo ' - help Prints this help message.'
|
||||||
|
@ -204,7 +204,12 @@ done
|
|||||||
|
|
||||||
function main {
|
function main {
|
||||||
typeset -a prefixes directories
|
typeset -a prefixes directories
|
||||||
typeset -A ldflags cflags sources type depends install auto filename nodist
|
|
||||||
|
# FIXME: We may want those to be defined somewhere else.
|
||||||
|
typeset -A ldflags cflags crflags
|
||||||
|
|
||||||
|
typeset -A sources type depends install auto filename nodist
|
||||||
|
|
||||||
typeset -A chmod
|
typeset -A chmod
|
||||||
typeset -a tests
|
typeset -a tests
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
function crystal.build {
|
function crystal.build {
|
||||||
write "${target}: ${src[@]} ${depends[$target]} $(dirdep $target)"
|
write "${target}: ${src[@]} ${depends[$target]} $(dirdep $target)"
|
||||||
write "\t@echo '${fg_bold[magenta]} CR > ${fg_bold[white]}$target${reset_color}'"
|
write "\t@echo '${fg_bold[magenta]} CR > ${fg_bold[white]}$target${reset_color}'"
|
||||||
write "\t${Q}crystal ${src[@]} -o '${target}'"
|
write "\t${Q}crystal build ${crflags[$target]:---release} \$(CRFLAGS) ${src[@]} -o '${target}'"
|
||||||
|
|
||||||
write "\n"
|
write "\n"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user