~ubuntu-branches/ubuntu/trusty/sexplib310/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Stéphane Glondu
  • Date: 2013-12-03 21:36:45 UTC
  • mfrom: (11.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20131203213645-h1if1c6hxual8p11
Tags: 109.20.00-2
* Team upload
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# OASIS_START
2
 
# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb)
3
 
 
4
 
SETUP = ocaml setup.ml
5
 
 
6
 
build: setup.data
7
 
        $(SETUP) -build $(BUILDFLAGS)
8
 
 
9
 
doc: setup.data build
10
 
        $(SETUP) -doc $(DOCFLAGS)
11
 
 
12
 
test: setup.data build
13
 
        $(SETUP) -test $(TESTFLAGS)
14
 
 
15
 
all: 
16
 
        $(SETUP) -all $(ALLFLAGS)
17
 
 
18
 
install: setup.data
19
 
        $(SETUP) -install $(INSTALLFLAGS)
20
 
 
21
 
uninstall: setup.data
22
 
        $(SETUP) -uninstall $(UNINSTALLFLAGS)
23
 
 
24
 
reinstall: setup.data
25
 
        $(SETUP) -reinstall $(REINSTALLFLAGS)
26
 
 
27
 
clean: 
28
 
        $(SETUP) -clean $(CLEANFLAGS)
29
 
 
30
 
distclean: 
31
 
        $(SETUP) -distclean $(DISTCLEANFLAGS)
32
 
 
33
 
setup.data:
34
 
        $(SETUP) -configure $(CONFIGUREFLAGS)
35
 
 
36
 
.PHONY: build doc test all install uninstall reinstall clean distclean configure
37
 
 
38
 
# OASIS_STOP
 
1
# Generic Makefile for oasis project
 
2
 
 
3
# Set to setup.exe for the release
 
4
SETUP := setup.exe
 
5
 
 
6
# Default rule
 
7
default: build
 
8
 
 
9
# Setup for the development version
 
10
setup-dev.exe: _oasis setup.ml
 
11
        sed '/^#/D' setup.ml > setup_dev.ml
 
12
        ocamlfind ocamlopt -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup_dev.ml ||        ocamlfind ocamlc -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup_dev.ml || true
 
13
        rm -f setup_dev.*
 
14
 
 
15
# Setup for the release
 
16
setup.exe: setup.ml
 
17
        ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $<
 
18
        rm -f setup.cmx setup.cmi setup.o setup.obj setup.cmo
 
19
 
 
20
build: $(SETUP) setup.data
 
21
        ./$(SETUP) -build $(BUILDFLAGS)
 
22
 
 
23
doc: $(SETUP) setup.data build
 
24
        ./$(SETUP) -doc $(DOCFLAGS)
 
25
 
 
26
test: $(SETUP) setup.data build
 
27
        ./$(SETUP) -test $(TESTFLAGS)
 
28
 
 
29
all: $(SETUP)
 
30
        ./$(SETUP) -all $(ALLFLAGS)
 
31
 
 
32
install: $(SETUP) setup.data
 
33
        ./$(SETUP) -install $(INSTALLFLAGS)
 
34
 
 
35
uninstall: $(SETUP) setup.data
 
36
        ./$(SETUP) -uninstall $(UNINSTALLFLAGS)
 
37
 
 
38
reinstall: $(SETUP) setup.data
 
39
        ./$(SETUP) -reinstall $(REINSTALLFLAGS)
 
40
 
 
41
clean: $(SETUP)
 
42
        ./$(SETUP) -clean $(CLEANFLAGS)
 
43
 
 
44
distclean: $(SETUP)
 
45
        ./$(SETUP) -distclean $(DISTCLEANFLAGS)
 
46
 
 
47
configure: $(SETUP)
 
48
        ./$(SETUP) -configure $(CONFIGUREFLAGS)
 
49
 
 
50
setup.data: $(SETUP)
 
51
        ./$(SETUP) -configure $(CONFIGUREFLAGS)
 
52
 
 
53
.PHONY: default build doc test all install uninstall reinstall clean distclean configure