-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (63 loc) · 1.23 KB
/
Copy pathMakefile
File metadata and controls
88 lines (63 loc) · 1.23 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
.SUFFIXES:
.ONESHELL:
.SECONDARY:
include git.mk
include setup.mk
HELP+=help-main
#WASI_BUILD:=$(REPOROOT)/ldc-build-runtime.tmp
.PHONY: help info
all:
native:
$(MAKE) all NATIVE=1
include setup_dlang_toolchain.mk
include llvm.mk
include wasi_libc.mk
include wasi_sdk.mk
ifdef USE_LDC_BUILD_RUNTIME
include ldc_runtime.mk
else
include wasi_druntime.mk
#all: libdruntime libphobos
endif
include hello_wasm.mk
help:
@echo "Usage "
@echo
@echo "make subdate : If the repo been clone with out --recursive then run the"
@echo
@echo "make spull : All the submodules can be pull by"
@echo
@echo "make all : Build all"
@echo
@echo "make native : Build native"
@echo
@echo "make help : Prints this help text"
@echo
@echo "make info : Prints the Link and Compile setting"
@echo
@echo "make proper : Clean all"
@echo
@echo "make clean : Clean the build"
@echo
%/.done:
touch $@
info:
@echo $@
prebuild: subdate
prebuild: install-dlang
all: prebuild
ifndef NATIVE
all: run
endif
.PHONY: run
run:
@echo "Done"
subdate: $(REPOROOT)/.done
#git submodule update --init --recursive
spull:
git pull --recurse-submodules
clean:
@echo $@
clean-build:
rm -fR build
proper: clean clean-build