forked from arkane-systems/genie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
75 lines (57 loc) · 1.25 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
#
# This Makefile builds and packages genie by invoking relevant sub-makefiles.
#
#
# Default target: list options
#
default:
# Build options include:
#
# make install-local
#
# make package-tar
# make package-debian (requires Debian build environment)
# make package-arch (requires Arch build environment)
# make package-fedora (requires Fedora build environment)
#
# make clean
# make clean-local
# make clean-tar
# make clean-debian
# make clean-arch
# make clean-fedora
#
# make build-binaries
#
# Targets: individual end-product build.
#
clean:
make -C binsrc clean
rm -rf out
install-local:
make -C package/local package
clean-local:
make -C package/local clean
package-tar: make-output-directory
make -C package/tar package
clean-tar:
make -C package/tar clean
package-debian: make-output-directory
make -C package/debian package
clean-debian:
make -C package/debian clean
package-arch: make-output-directory
make -C package/arch package
clean-arch:
make -C package/arch clean
package-fedora: make-output-directory # build-binaries
make -C package/fedora package
clean-fedora:
make -C package/fedora clean
#
# Helpers: intermediate build stages.
#
make-output-directory:
mkdir -p out
build-binaries:
make -C binsrc