-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (30 loc) · 839 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (30 loc) · 839 Bytes
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
# This Makefile aims to help user get rid of the massive cmake command
# `make all`
# That is what you only needed ;-)
.PHONY: all build build-init build-update cmake-check clean rebuild
.PHONY: ext-download ext-install-offline ext-install ext-clean ext-dist
BUILD_DIR = 'build'
INSTALL_DIR = 'install'
all: build
build: | build-init
cd $(BUILD_DIR) && cmake .. && $(MAKE) install
build-init:
mkdir -p $(BUILD_DIR)
build-update: | build
$(MAKE) -C $(BUILD_DIR) install
cmake-check: clean | build-init
cd $(BUILD_DIR) && cmake ..
clean:
rm -rf $(BUILD_DIR)
rm -rf $(INSTALL_DIR)
rebuild: clean all
ext-download:
$(MAKE) -C external download
ext-install-offline:
$(MAKE) -C external install_offline
ext-install:
$(MAKE) -C external install
ext-clean:
$(MAKE) -C external clean
ext-dist:
$(MAKE) -C external dist