1 include ../support/Makefile.common
3 all: tk.ml labltk.ml .depend
5 _tkgen.ml: ../Widgets.src ../compiler/tkcompiler$(EXE)
6 cd ..; $(CAMLRUNGEN) compiler/tkcompiler$(EXE) -outdir labltk
8 # dependencies are broken: wouldn't work with gmake 3.77
10 #tk.ml labltk.ml .depend: generate
12 tk.ml labltk.ml .depend: _tkgen.ml ../builtin/report.ml ../compiler/pp$(EXE) #../builtin/builtin_*.ml
13 (echo 'open StdLabels'; \
15 echo 'open Protocol'; \
16 echo 'open Support'; \
17 echo 'open Textvariable'; \
18 cat ../builtin/report.ml; \
19 cat ../builtin/builtin_*.ml; \
23 echo 'module Tkintf = struct'; \
24 cat ../builtin/builtini_*.ml; \
26 echo 'end (* module Tkintf *)'; \
32 cat ../builtin/builtinf_*.ml; \
36 $(CAMLRUN) ../compiler/pp < _tk.ml > tk.ml
38 $(CAMLDEP) -slash -I ../support [a-z]*.mli [a-z]*.ml > .depend
41 cd ../compiler; $(MAKE) pp$(EXE)
43 ../compiler/tkcompiler$(EXE):
44 cd ../compiler; $(MAKE) tkcompiler$(EXE)
46 # All .{ml,mli} files are generated in this directory
48 rm -f *.cm* *.ml *.mli *.$(O) *.$(A) .depend
52 .PHONY: all generate clean