Crystal support improved.
parent
7d15fbb3d3
commit
0b4028e979
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
|||
PACKAGE = 'build_zsh'
|
||||
VERSION = '0.3.1'
|
||||
VERSION = '0.4.0'
|
||||
|
||||
PREFIX := /usr/local
|
||||
BINDIR := $(PREFIX)/bin
|
||||
|
@ -285,7 +285,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
|
|||
$(PACKAGE)-$(VERSION)/Makefile
|
||||
|
||||
help:
|
||||
@echo ' :: build_zsh-0.3.1'
|
||||
@echo ' :: build_zsh-0.4.0'
|
||||
@echo ''
|
||||
@echo 'Generic targets:'
|
||||
@echo ' - help Prints this help message.'
|
||||
|
|
|
@ -204,7 +204,12 @@ done
|
|||
|
||||
function main {
|
||||
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 tests
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
function crystal.build {
|
||||
write "${target}: ${src[@]} ${depends[$target]} $(dirdep $target)"
|
||||
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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue