shithub: slug

ref: 307ba8a8d9d7c0088462bc4e947639b4593ce597
dir: /mkfile/

View raw version
</$objtype/mkfile

BIN=/$objtype/bin
TARG=slug
LIB=lua/liblua.a.$O
HFILES=a.h
OFILES=slug.$O api.$O color.$O pixels.$O math.$O
MAN=/sys/man/1

</sys/src/cmd/mkone

CFLAGS=-FTVw -p -Ilua/shim -Ilua -DLUA_USE_PLAN9

$LIB:V:
	@{cd lua; mk}

install:V: man

pull:V:
	@{if(test -d lua){cd lua; git/pull}
	  if not git/clone https://git.sr.ht/~kvik/lu9-lua lua}
	
clean nuke:V:
	@{ cd lua; mk $target }
	rm -f *.[$OS] [$OS].out $TARG