-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (38 loc) · 1.26 KB
/
Makefile
File metadata and controls
45 lines (38 loc) · 1.26 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
37
38
39
40
41
42
43
44
45
# @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@
#
# @rocks@
# Copyright (c) 2000 - 2010 The Regents of the University of California
# All rights reserved. Rocks(r) v5.4 www.rocksclusters.org
# https://github.com/Teradata/stacki/blob/master/LICENSE-ROCKS.txt
# @rocks@
PKGROOT = /opt/stack
ROLLROOT = ../../../..
DEPENDS.DIRS = stack
DEPENDS.FILES = stack.py
PY.TEST.FLAGS = -s
RPM.REQUIRES = foundation-python-Jinja2 foundation-python-jsoncomment foundation-python-PyYAML foundation-python-PyMySQL stack-templates
include $(STACKBUILD)/etc/CCRules.mk
bootstrap: install-rpm
doc:
$(STACKBUILD)/src/pallet/etc/doc/genrcldocs stacki markdoc
build:
install::
mkdir -p $(ROOT)/$(PKGROOT)/bin
mkdir -p $(ROOT)/$(PY.STACK)/stack
$(INSTALL) -m0555 stack.py $(ROOT)/$(PKGROOT)/bin/stack
( \
cd stack; \
find . -name "*.py" | \
cpio -pduv $(ROOT)/$(PY.STACK)/stack; \
rm $(ROOT)/$(PY.STACK)/stack/__init__.py; \
)
find $(ROOT)/$(PY.STACK)/stack/ -name "*.py" | gawk \
'{ print "\nRollName = \"$(ROLL)\"" >> $$1; }'
find $(ROOT) -type d -exec chmod a+rx {} \;
clean::
find stack -name *.pyc -exec rm -f {} \;
rm -rf cli