forked from ocaml-omake/omake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
36 lines (31 loc) · 1.01 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
#
# For bootstrapping
#
.PHONY: all bootstrap install default
#
# Bootstrap program is omake-boot
#
default:
@echo "If you have already built omake, you should use it instead of make."
@echo "If you need to bootstrap, use "
@echo " - 'make bootstrap',"
@echo " to build the bootstrapping (feature-limited) OMake binary './omake-boot'."
@echo " - 'make all',"
@echo " to bootstrap and then build everything"
@echo " - 'make install',"
@echo " to bootstrap, build, and install everything"
@exit 1
bootstrap: boot/Makefile
@cd boot; $(MAKE) Makefile.dep; $(MAKE) omake
@ln -sf boot/omake omake-boot
boot/Makefile: src/Makefile
mkdir -p boot
@touch boot/Makefile.dep
@sleep 1
ln -sf ../src/Makefile boot/Makefile
all: bootstrap
touch .config
OMAKEFLAGS= OMAKEPATH=lib ./omake-boot --dotomake .omake --force-dotomake main
OMAKEFLAGS= OMAKEPATH=lib src/main/omake --dotomake .omake --force-dotomake all
install: all
OMAKEFLAGS= OMAKEPATH=lib src/main/omake --dotomake .omake --force-dotomake install