~ubuntu-branches/ubuntu/hardy/pxp/hardy

« back to all changes in this revision

Viewing changes to src/pxp-wlex/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2005-03-29 11:06:39 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050329110639-5p39hz1d4aq3r2ec
Tags: 1.1.95-6
* Rebuilt against ocaml 3.08.3
* No longer built with wlex support (since wlex is no longer supported
  upstream and corresponding package has been removed from the debian
  archive)

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 -destdir $(DESTDIR) pxp-wlex $$files
38
 
 
39
 
uninstall:
40
 
        $(OCAMLFIND) remove pxp-wlex