22 lines
640 B
Makefile
22 lines
640 B
Makefile
|
# Makefile - hhl - /usr/src/world/ninja
|
||
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
||
|
#
|
||
|
distname = ninja
|
||
|
distext = gz
|
||
|
use_configure = 0
|
||
|
include world.mk
|
||
|
|
||
|
build_cmd = cd ${objdir} && python3 ${srcdir}/configure.py --bootstrap
|
||
|
install_cmd = install -m755 ${objdir}/ninja ${bindir}
|
||
|
|
||
|
define post_install
|
||
|
install -d ${sharedir}/bash-completion/completions/ninja
|
||
|
install -m644 ${srcdir}/misc/bash-completion \
|
||
|
${sharedir}/bash-completion/completions/ninja
|
||
|
install -d ${sharedir}/zsh/site-functions
|
||
|
install -Dm644 ${srcdir}/misc/zsh-completion \
|
||
|
${sharedir}/zsh/site-functions/_ninja
|
||
|
endef
|
||
|
|
||
|
include targets.mk
|