~ubuntu-branches/ubuntu/intrepid/pxp/intrepid

« back to all changes in this revision

Viewing changes to src/pxp-wlex/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2002-03-27 20:47:53 UTC
  • Revision ID: james.westby@ubuntu.com-20020327204753-1lmazhm839pz62pq
Tags: upstream-1.1.4
ImportĀ upstreamĀ versionĀ 1.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TOP_DIR = ../..
 
2
include $(TOP_DIR)/Makefile.rules
 
3
 
 
4
all:
 
5
        $(MAKE) generate
 
6
        $(MAKE) depend
 
7
        $(MAKE) -f Makefile.code all
 
8
 
 
9
opt:
 
10
        $(MAKE) generate
 
11
        $(MAKE) depend
 
12
        $(MAKE) -f Makefile.code opt
 
13
 
 
14
generate: pxp_wlex.ml
 
15
 
 
16
pxp_wlex.ml: pxp_wlex.mlw
 
17
        cp pxp_wlex.mlw pxp_wlex.mll
 
18
        (wlex pxp_wlex.mll; x=$$?; rm pxp_wlex.mll; exit $$x)
 
19
 
 
20
depend: *.ml
 
21
        ocamldep *.ml *.mli >depend
 
22
 
 
23
clean:
 
24
        rm -f $(CLEAN_LIST) pxp_wlex.ml META
 
25
 
 
26
CLEAN: clean
 
27
 
 
28
# pxp_wlex.ml is contained in the distribution such that users
 
29
# need not to patch ocaml sources to make wlex.
 
30
 
 
31
distclean:
 
32
        test -f pxp_wlex.ml
 
33
        rm -f $(CLEAN_LIST) META
 
34
 
 
35
install:
 
36
        files=`$(COLLECT_FILES) *.cmi *.cma *.cmxa *.a pxp_wlex_link.cmo pxp_wlex_link.cmx  pxp_wlex_link.o META` && \
 
37
        $(OCAMLFIND) install pxp-wlex $$files
 
38
 
 
39
uninstall:
 
40
        $(OCAMLFIND) remove pxp-wlex