/[svn]/Makefile.distrib
ViewVC logotype

Diff of /Makefile.distrib

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 579 by abate, Tue Jul 10 17:45:06 2007 UTC revision 580 by abate, Tue Jul 10 17:46:08 2007 UTC
# Line 38  Line 38 
38          CAMLOPT_P = ocamlopt -inline 25          CAMLOPT_P = ocamlopt -inline 25
39  endif  endif
40    
 ifeq ($(PHP), true)  
    PHP_ARG = -php  
    WEB_EXT = .php  
 else  
    PHP_ARG =  
    WEB_EXT = .html  
 endif  
   
41  OPT = -warn-error FPS  OPT = -warn-error FPS
42  CAMLC = ocamlfind $(CAMLC_P) $(OPT) -package "$(PACKAGES)"  CAMLC = ocamlfind $(CAMLC_P) $(OPT) -package "$(PACKAGES)"
43  CAMLOPT = ocamlfind $(CAMLOPT_P) $(OPT) -package "$(PACKAGES)"  CAMLOPT = ocamlfind $(CAMLOPT_P) $(OPT) -package "$(PACKAGES)"
# Line 134  Line 126 
126          rm -f cduce ocamlprof.dump          rm -f cduce ocamlprof.dump
127          rm -f dtd2cduce pool webiface validate          rm -f dtd2cduce pool webiface validate
128          rm -Rf prepro package          rm -Rf prepro package
129          rm -f web/www/*.php web/www/*.html web/*~          rm -f web/www/*.html web/*~
130    
131    
132  .SUFFIXES: .ml .mli .cmo .cmi .cmx  .SUFFIXES: .ml .mli .cmo .cmi .cmx
# Line 159  Line 151 
151          (cd web/examples; ../../cduce --quiet build.cd --arg examples.xml)          (cd web/examples; ../../cduce --quiet build.cd --arg examples.xml)
152    
153  webpages: cduce web/site.cd  webpages: cduce web/site.cd
154          (cd web; ../cduce --quiet site.cd --arg $(PHP_ARG) site.xml)          (cd web; ../cduce --quiet site.cd --arg site.xml)
155    
156  website: webpages webiface  website: webpages webiface
157    
158  install_web: website  install_web: website
159          cp  web/www/*$(WEB_EXT) web/cduce.css  $(HTML_DIR)/          cp  web/www/*.html web/cduce.css  $(HTML_DIR)/
160          cp CHANGES $(HTML_DIR)/          cp CHANGES $(HTML_DIR)/
161          cp webiface $(CGI_DIR)/cduce          cp webiface $(CGI_DIR)/cduce
162          if test ! -d "$(HTML_DIR)/img" ; then \          if test ! -d "$(HTML_DIR)/img" ; then \

Legend:
Removed from v.579  
changed lines
  Added in v.580

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5