36 lines
704 B
Bash
36 lines
704 B
Bash
|
||
package=package
|
||
version=0.2.0
|
||
|
||
variables+=(
|
||
LIBEXECDIR '$(PREFIX)/libexec'
|
||
)
|
||
|
||
targets=(package assemble-apk.sh)
|
||
|
||
type[package]=crystal
|
||
sources[package]=src/main.cr
|
||
depends[package]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr"
|
||
|
||
type[assemble-apk.sh]=script
|
||
|
||
targets+=(src/config.cr)
|
||
type[src/config.cr]=script
|
||
sources[src/config.cr]=src/config.cr.in
|
||
auto[src/config.cr]=true # Don’t display it in `make help`.
|
||
install[src/config.cr]=false
|
||
|
||
# FIXME: Clean and upstream this.
|
||
function script.install {
|
||
if [[ false == "${install[$target]}" ]]; then
|
||
write "$target.install:"
|
||
write "\t${Q}:"
|
||
write
|
||
else
|
||
binary.install "$@"
|
||
fi
|
||
}
|
||
|
||
install[assemble-apk.sh]='$(LIBEXECDIR)/package'
|
||
|