File: Makefile

package info (click to toggle)
obrowser 1.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,216 kB
  • ctags: 3,498
  • sloc: ml: 13,505; makefile: 343; sh: 11
file content (49 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
all: vm.js \
     tutorial.exe.uue \
     hello.exe.uue \
     hello_event.exe.uue \
     hello_dom.exe.uue \
     num_sections.exe.uue \
     inline_img.exe.uue \
     clock.exe.uue \
     colorpicker.exe.uue \
     prod_cons.exe.uue \
     distrib

tutorial.exe:  syntax_common.cmo \
                   syntax_xml.cmo \
                   syntax_js.cmo \
                   syntax_html.cmo \
                   syntax_ocaml.cmo \
                   tutorial.cmo
	@echo "[OCAMLC] $@"
	@CAMLLIB=../rt/caml ocamlc $^ -o $@

%.exe: %.ml ../rt/caml/stdlib.cma
	@echo "[OCAMLC] $@"
	@CAMLLIB=../rt/caml ocamlc $< -o $@

%.cmo: %.ml ../rt/caml/stdlib.cma
	@echo "[OCAMLC] $@"
	@CAMLLIB=../rt/caml ocamlc -c $<

%.uue: %
	@echo "[UUENCODE] $@"
	@uuencode $^ stdout > $@

vm.js: ../vm.js
	@echo "[CP] $@"
	@cp $< $@

../vm.js: ../rt/js/*.js
	@cd .. && $(MAKE) vm.js

 ../rt/caml/stdlib.cma:  ../rt/caml/*.ml*
	@cd .. && $(MAKE) rt/caml/stdlib.cma

distrib:
	ln -s .. distrib

clean:
	@echo "[CLEAN]"
	@rm -f *.cm* *~ *.uue *.exe vm.js distrib