FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stacki/Makefile at develop · Teradata/stacki · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Teradata
/
stacki
Public
Notifications
You must be signed in to change notification settings
Fork
71
Star
236
Code
Issues
42
Pull requests
15
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
stacki
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
68 lines (58 loc) · 2.04 KB
Breadcrumbs
stacki
/
Makefile
Copy path
File metadata and controls
68 lines (58 loc) · 2.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
@copyright@
#
Copyright (c) 2006 - 2019 Teradata
#
All rights reserved. Stacki(r) v5.x stacki.com
#
https://github.com/Teradata/stacki/blob/master/LICENSE.txt
#
@copyright@
OS
=
$(
shell
common/src/stack/build/build/bin/os)
RELEASE
=
$(
shell
common/src/stack/build/build/bin/os-release)
DISTRO
=
$(
shell
common/src/stack/build/build/bin/distribution)
ROLLROOT
= .
-include
$(
ROLLSBUILD
)
/etc/CCRolls.mk
ifeq
(
$(
OS
)
,redhat)
BOOTABLE
=1
endif
.PHONY
: 3rdparty
3rdparty
:
#
we need to do the for all OSes
cd
common
&&
$(
ROLLSBUILD
)
/bin/get3rdparty.py
cd
redhat
&&
$(
ROLLSBUILD
)
/bin/get3rdparty.py
cd
sles
&&
$(
ROLLSBUILD
)
/bin/get3rdparty.py
bootstrap-make
:
$(
MAKE
)
-C
$(
OS
)
-f bootstrap.mk RELEASE=
$(
RELEASE
)
bootstrap
$(
MAKE
)
-C common/src/stack/build bootstrap
bootstrap
: bootstrap-make
ifeq
(
$(
STACKBUILD
)
,)
@echo
@echo
@echo Stacki build environment is now installed. Before you can
@echo continue you will need to logout and login again. Then re-run
@echo "make bootstrap" again.
@echo
@echo
@/bin/false
#
stop the caller from continuing
else
$(MAKE) 3rdparty
$(MAKE) -C common/src $@
endif
$(MAKE) -C $(OS) -f bootstrap.mk $@
$(MAKE) -C $(OS)/src $@
preroll
::
make -C common/src pkg
make -C
$(
OS
)
/src pkg
make -C tools/fab pkg
mkdir -p build-
$(
ROLL
)
-
$(
STACK
)
/graph
mkdir -p build-
$(
ROLL
)
-
$(
STACK
)
/nodes
mkdir -p build-
$(
ROLL
)
-
$(
STACK
)
/pallet_hooks/common
mkdir -p build-
$(
ROLL
)
-
$(
STACK
)
/pallet_hooks/
$(
OS
)
cp common/graph/
*
$(
OS
)
/graph/
*
build-
$(
ROLL
)
-
$(
STACK
)
/graph/
cp common/nodes/
*
$(
OS
)
/nodes/
*
build-
$(
ROLL
)
-
$(
STACK
)
/nodes/
#
mkisofs fails because the directory structure is too deep in the build env
#
for the version on sles11. We just simply skip this step for sles11 as the
#
sles12 pallet holds all the hooks and initrds for sles11 anyways.
ifneq
(
$(
RELEASE
)
,sles11)
-cp -r common/pallet_hooks/ build-$(ROLL)-$(STACK)/pallet_hooks/common/
-cp -r $(OS)/pallet_hooks/ build-$(ROLL)-$(STACK)/pallet_hooks/$(OS)/
endif
clean
::
rm -rf build-
$(
ROLL
)
-
$(
STACK
)
/graph/
rm -rf build-
$(
ROLL
)
-
$(
STACK
)
/nodes/
rm -rf build-
$(
ROLL
)
-
$(
STACK
)
/pallet_hooks/
Back
|
FazBrowse Home
|
New Git URL