-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathGNUmakefile
More file actions
43 lines (28 loc) · 911 Bytes
/
GNUmakefile
File metadata and controls
43 lines (28 loc) · 911 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
# Credits to Blender Cycles
# Environment variables that control the build:
# LUX_SOURCE_DIR - The path to the top level of the source tree (default: .)
# LUX_BINARY_DIR - The path to the top level of the build tree (default: ./out)
# LUX_BUILD_TYPE - Specifies the build type (default: Release)
ifndef PYTHON
PYTHON:=python3
endif
LUX-CMAKE = $(PYTHON) build-helpers/make/cmake.py
build-targets = pyluxcore luxcoreui luxcoreconsole luxcore doc
.PHONY: deps list-presets config luxcore pyluxcore luxcoreui luxcoreconsole install clean clear doc
all: luxcore pyluxcore luxcoreui luxcoreconsole
deps:
$(LUX-CMAKE) deps
list-presets:
$(LUX-CMAKE) list-presets
config:
$(LUX-CMAKE) config
$(build-targets): %: config
$(LUX-CMAKE) build-and-install $*
install:
$(LUX-CMAKE) install all
package:
$(LUX-CMAKE) build-and-install package
clean:
$(LUX-CMAKE) clean
clear:
$(LUX-CMAKE) clear