Guest User

Untitled

a guest
Nov 18th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. wieczyk@posejdon: Code/StringPainter
  2. % cat META
  3. name = "stringpainter"
  4. version = "0.1"
  5. description = "Pretty printing combinators, designed for printing ASTs."
  6.  
  7. archive(native) = "StringPainter.cmxa"
  8. archive(byte) = "StringPainter.cma"
  9.  
  10. wieczyk@posejdon: Code/StringPainter
  11. % cat Makefile
  12. OCAMLBUILD= ocamlbuild
  13. OCAMLFIND = ocamlfind
  14.  
  15. SOURCE_DIRS=\
  16. -Is src\
  17.  
  18.  
  19. DEMO_DIRS=\
  20. -Is demo\
  21.  
  22. LIBS_=src/StringPainter.cma src/StringPainter.cmxa
  23. LIBS =_build/src/StringPainter.cma _build/src/StringPainter.cmxa
  24.  
  25. DEMO=demo/Demo.native
  26.  
  27. all: ${LIBS}
  28.  
  29. install: ${LIBS}
  30. ${OCAMLFIND} install stringpainter META ${LIBS}
  31.  
  32. ${LIBS}:
  33. ${OCAMLBUILD} ${SOURCE_DIRS} ${LIBS_}
  34.  
  35. ${DEMO}:
  36. ${OCAMLBUILD} ${DEMO_DIRS} ${SOURCE_DIRS} ${DEMO}
  37.  
  38. clean:
  39. ${OCAMLBUILD} ${DEMO_DIRS} ${SOURCE_DIRS} ${DEMO} -clean
Advertisement
Add Comment
Please, Sign In to add comment