Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
make install-findlib for more parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
pad committed Nov 13, 2013
1 parent 850c7f4 commit 320eb37
Show file tree
Hide file tree
Showing 13 changed files with 91 additions and 28 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,12 @@ uninstall:


INSTALL_SUBDIRS= \
commons h_program-lang matcher \
lang_js/parsing
commons \
h_program-lang matcher \
lang_ml/parsing \
lang_php/parsing \
lang_cpp/parsing lang_java/parsing \
lang_js/parsing lang_css/parsing lang_html/parsing \

LIBNAME=pfff
install-findlib::
Expand Down
4 changes: 4 additions & 0 deletions lang_cpp/parsing/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description = "C/C++ parser"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"
15 changes: 10 additions & 5 deletions lang_cpp/parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,14 @@ parsing_hacks_typedef.cmo: parsing_hacks_typedef.ml


##############################################################################
# Generic rules
##############################################################################

##############################################################################
# Literate Programming rules
# install
##############################################################################
LIBNAME=pfff-lang_cpp
EXPORTSRC=meta_ast_cpp.mli \
parser_cpp.mli parse_cpp.mli \
lib_parsing_cpp.mli visitor_cpp.mli \

install-findlib:
ocamlfind install $(LIBNAME) META lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) $(EXPORTSRC:%.mli=%.cmt) \
ast_cpp.ml ast_cpp.cmi
4 changes: 4 additions & 0 deletions lang_css/parsing/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description = "CSS parser"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"
16 changes: 11 additions & 5 deletions lang_css/parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,17 @@ beforedepend:: parser_css.ml parser_css.mli
visitor_css.cmo: visitor_css.ml
$(OCAMLC) -w y -c $<


##############################################################################
# Generic rules
# install
##############################################################################
LIBNAME=pfff-lang_css
EXPORTSRC=meta_ast_css.mli \
parser_css.mli parse_css.mli \
lib_parsing_css.mli

##############################################################################
# Literate Programming rules
##############################################################################
# visitor_css.mli \
install-findlib:
ocamlfind install $(LIBNAME) META lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) $(EXPORTSRC:%.mli=%.cmt) \
ast_css.ml ast_css.cmi
4 changes: 4 additions & 0 deletions lang_html/parsing/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description = "HTML parser"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"
15 changes: 10 additions & 5 deletions lang_html/parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@ visitor_html.cmo: visitor_html.ml


##############################################################################
# Generic rules
##############################################################################

##############################################################################
# Literate Programming rules
# install
##############################################################################
LIBNAME=pfff-lang_html
EXPORTSRC=meta_ast_html.mli \
parser_html.mli parse_html.mli \
lib_parsing_html.mli visitor_html.mli \

install-findlib:
ocamlfind install $(LIBNAME) META lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) $(EXPORTSRC:%.mli=%.cmt) \
ast_html.ml ast_html.cmi
4 changes: 4 additions & 0 deletions lang_java/parsing/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description = "Java parser"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"
14 changes: 10 additions & 4 deletions lang_java/parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ SRC= flag_parsing_java.ml \
visitor_java.ml \
test_parsing_java.ml unit_parsing_java.ml



SYSLIBS= str.cma unix.cma

LIBS= $(TOP)/commons/lib.cma \
Expand All @@ -26,7 +24,6 @@ INCLUDEDIRS= $(TOP)/commons $(TOP)/commons/ocamlextra \
$(TOP)/matcher \
$(TOP)/globals \


##############################################################################
# Generic variables
##############################################################################
Expand Down Expand Up @@ -69,5 +66,14 @@ visitor_java.cmo: visitor_java.ml
$(OCAMLC) -w y -c $<

##############################################################################
# Generic rules
# install
##############################################################################
LIBNAME=pfff-lang_java
EXPORTSRC=meta_ast_java.mli \
parser_java.mli parse_java.mli \
lib_parsing_java.mli visitor_java.mli \

install-findlib:
ocamlfind install $(LIBNAME) META lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) $(EXPORTSRC:%.mli=%.cmt) \
ast_java.ml ast_java.cmi
4 changes: 4 additions & 0 deletions lang_ml/parsing/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description = "OCaml parser"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"
15 changes: 10 additions & 5 deletions lang_ml/parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ visitor_ml.cmo: visitor_ml.ml
$(OCAMLC) -w y -c $<

##############################################################################
# Generic rules
##############################################################################

##############################################################################
# Literate Programming rules
# install
##############################################################################
LIBNAME=pfff-lang_ml
EXPORTSRC=meta_ast_ml.mli \
parser_ml.mli parse_ml.mli \
lib_parsing_ml.mli visitor_ml.mli \

install-findlib:
ocamlfind install $(LIBNAME) META lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) $(EXPORTSRC:%.mli=%.cmt) \
ast_ml.ml ast_ml.cmi
4 changes: 4 additions & 0 deletions lang_php/parsing/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description = "PHP parser"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"
12 changes: 10 additions & 2 deletions lang_php/parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,18 @@ visitor_php.cmo: visitor_php.ml
pretty_print_php.cmo: pretty_print_php.ml
$(OCAMLC) -w y -c $<


##############################################################################
# Generic rules
# install
##############################################################################
LIBNAME=pfff-lang_php
EXPORTSRC=meta_ast_php.mli \
parser_php.mli parse_php.mli \
lib_parsing_php.mli visitor_php.mli \

install-findlib:
ocamlfind install $(LIBNAME) META lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) $(EXPORTSRC:%.mli=%.cmt) \
ast_php.ml ast_php.cmi

##############################################################################
# Literate Programming rules
Expand Down

0 comments on commit 320eb37

Please sign in to comment.