-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
76 lines (58 loc) · 1.42 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Pulse's `Makefile`s rely on recent GNU Make's "shortest stem" rule,
# so we need to rule out older `make`s.
ifeq (3.81,$(MAKE_VERSION))
$(error You seem to be using the OSX antiquated Make version. Hint: brew \
install make, then invoke gmake instead of make)
endif
all: build
# Define the Pulse root directory. We need to fix it to use the Windows path convention on Windows+Cygwin.
ifeq ($(OS),Windows_NT)
PULSE_HOME := $(shell cygpath -m $(CURDIR))
else
PULSE_HOME := $(CURDIR)
endif
include $(PULSE_HOME)/share/pulse/Makefile.locate-fstar
.PHONY: build
build:
+$(MAKE) -C src build-ocaml
+$(MAKE) -C lib/pulse
clean:
+$(MAKE) -C lib/pulse clean ; true
.PHONY: test
test: all
+$(MAKE) -C share/pulse
ifeq (,$(PREFIX))
PREFIX := /usr/local
endif
ifeq ($(OS),Windows_NT)
PREFIX := $(shell cygpath -m $(PREFIX))
endif
export PREFIX
INSTALL := $(shell ginstall --version 2>/dev/null | cut -c -8 | head -n 1)
ifdef INSTALL
INSTALL := ginstall
else
INSTALL := install
endif
export INSTALL
.PHONY: install install-lib install-share
install-lib:
+$(MAKE) -C lib/pulse install
install-share:
+$(MAKE) -C share/pulse install
install: install-lib install-share
.PHONY: pulse2rust
pulse2rust:
+$(MAKE) -C pulse2rust
.PHONY: boot
boot:
+$(MAKE) -C src boot
.PHONY: boot-checker
boot-checker:
+$(MAKE) -C src boot-checker
.PHONY: full-boot
full-boot:
+$(MAKE) -C src full-boot
.PHONY: ci
ci:
+$(MAKE) -C src ci