![Ori Bernstein](/assets/img/avatar_default.png)
Based off the following 3 commits: 4a3fb87264f8bc03fc62f00ef335056f30d18023 45f8ba54143323f08a21343633764caa59aa3ea3 fdf6ef333705c844bcf3ccf2f93b2773f1a6aa41 Reading /mnt/acme/log reports a log of window create, put, focus, and delete events, as they happen. It blocks until the next event is available. Example log output: 8 new /Users/rsc/foo.go 8 put /Users/rsc/foo.go 8 del /Users/rsc/foo.go This lets acme-aware programs react to file writes, for example compiling code, running a test, or updating an import block.
47 lines
555 B
Makefile
47 lines
555 B
Makefile
</$objtype/mkfile
|
|
BIN=/$objtype/bin
|
|
|
|
TARG=acme
|
|
|
|
OFILES=\
|
|
acme.$O\
|
|
addr.$O\
|
|
buff.$O\
|
|
cols.$O\
|
|
disk.$O\
|
|
ecmd.$O\
|
|
edit.$O\
|
|
elog.$O\
|
|
exec.$O\
|
|
file.$O\
|
|
fsys.$O\
|
|
logf.$O\
|
|
look.$O\
|
|
regx.$O\
|
|
rows.$O\
|
|
scrl.$O\
|
|
text.$O\
|
|
time.$O\
|
|
util.$O\
|
|
wind.$O\
|
|
xfid.$O\
|
|
|
|
HFILES=dat.h\
|
|
edit.h\
|
|
fns.h\
|
|
|
|
UPDATE=\
|
|
mkfile\
|
|
$HFILES\
|
|
${OFILES:%.$O=%.c}\
|
|
|
|
</sys/src/cmd/mkone
|
|
|
|
$O.out: /$objtype/lib/libframe.a /$objtype/lib/libdraw.a /$objtype/lib/libthread.a
|
|
|
|
edit.$O ecmd.$O elog.$O: edit.h
|
|
|
|
syms:V:
|
|
$CC -a acme.c > syms
|
|
for(i in ????.c) $CC -aa $i >> syms
|