~ubuntu-branches/ubuntu/lucid/mtasc/lucid

« back to all changes in this revision

Viewing changes to ocaml/mtasc/doc/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2007-05-23 19:17:16 UTC
  • mto: (2.1.1 gutsy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20070523191716-lpvac307yorewp3g
Tags: upstream-1.13
ImportĀ upstreamĀ versionĀ 1.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DESTDIR=
 
2
PREFIX=/usr/local
 
3
ZLIB=/usr/lib/libz.so
 
4
 
 
5
build:
 
6
        ( cd ocaml/extc ; ocamlc extc_stubs.c ;\
 
7
        ocamlfind ocamlopt -package extlib -a -o extc.cmxa -cclib ../extc/extc_stubs.o -cclib $(ZLIB) extc.mli extc.ml )
 
8
        cd ocaml/swflib ; ocamlfind ocamlopt -package extlib -a -o swflib.cmxa -I .. -I ../extc swf.ml swfZip.ml actionScript.ml swfParser.ml
 
9
        ( cd ocaml/mtasc ; ocamllex lexer.mll ; ocamlopt -c expr.ml lexer.ml ; ocamlopt -c -pp camlp4o parser.ml ;\
 
10
        ocamlfind ocamlopt -package extlib -c -I .. -I ../extc -I ../swflib typer.ml class.ml plugin.ml genSwf.ml main.ml ;\
 
11
        ocamlfind ocamlopt -package extlib -linkpkg -o mtasc -cclib $(ZLIB) extLib.cmxa ../extc/extc.cmxa ../swflib/swflib.cmxa expr.cmx lexer.cmx parser.cmx typer.cmx class.cmx plugin.cmx genSwf.cmx main.cmx )
 
12
 
 
13
clean:
 
14
        rm -f ocaml/*/*.cma ocaml/*/*.cmi ocaml/*/*.cmo ocaml/*/*.cmx
 
15
        rm -f ocaml/*/*.cmxa ocaml/*/*.o ocaml/*/*.a
 
16
        rm -f ocaml/mtasc/lexer.ml ocaml/mtasc/mtasc
 
17
 
 
18
install:
 
19
        mkdir -p $(DESTDIR)$(PREFIX)/bin/ $(DESTDIR)$(PREFIX)/share/
 
20
        cp ocaml/mtasc/mtasc $(DESTDIR)$(PREFIX)/bin/
 
21
        cp -r ocaml/mtasc/std $(DESTDIR)$(PREFIX)/share/
 
22
        cp -r ocaml/mtasc/std8 $(DESTDIR)$(PREFIX)/share/
 
23
 
 
24
.PHONY: build install clean