File: Makefile

package info (click to toggle)
ocamlmakefile 6.39.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 336 kB
  • sloc: ml: 182; makefile: 57; sh: 7; ansic: 7
file content (32 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Set OCamlMakefile to use
export OCAMLMAKEFILE = ../OCamlMakefile

# Export some common variable settings
export THREADS = yes

# Define project "ex1"
define PROJ_ex1
  SOURCES = ex1.ml
  RESULT = ex1
endef
export PROJ_ex1

# Define project "ex2"
define PROJ_ex2
  SOURCES = ex2.ml
  RESULT = ex2
endef
export PROJ_ex2

# If the environment does not define subprojects to handle,
# then use "ex1 ex2" as default
ifndef SUBPROJS
  export SUBPROJS = ex1 ex2
endif

# Default target to use
all:	bc

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@