34 lines
803 B
Makefile
34 lines
803 B
Makefile
include ../support/Makefile.common
|
|
|
|
all: tk.ml .depend
|
|
|
|
tkgen.ml: ../Widgets.src ../compiler/tkcompiler
|
|
cd ..; ../../boot/ocamlrun compiler/tkcompiler
|
|
|
|
# dependencies are broken: wouldn't work with gmake 3.77
|
|
|
|
tk.ml .depend: tkgen.ml ../builtin/report.ml #../builtin/builtin_*.ml
|
|
(echo 'open Widget'; \
|
|
echo 'open Protocol'; \
|
|
echo 'open Support'; \
|
|
echo 'open Textvariable'; \
|
|
cat ../builtin/report.ml; \
|
|
cat ../builtin/builtin_*.ml; \
|
|
cat tkgen.ml; \
|
|
echo ; \
|
|
echo ; \
|
|
echo 'module Tkintf = struct'; \
|
|
cat ../builtin/builtini_*.ml; \
|
|
cat tkigen.ml; \
|
|
echo 'end (* module Tkintf *)'; \
|
|
echo ; \
|
|
echo ; \
|
|
echo 'open Tkintf' ;\
|
|
echo ; \
|
|
echo ; \
|
|
cat ../builtin/builtinf_*.ml; \
|
|
cat tkfgen.ml; \
|
|
echo ; \
|
|
) > tk.ml
|
|
$(LABLDEP) *.mli *.ml > .depend
|