forked from scality/cloudserver
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 944 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 944 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
#-*- Makefile -*-
ifdef DEBUG
# Tests debug mode enabled (SKIPPER_INTERACTIVE must be set for this to work)
DEBUGGER=--debugger
MULTIPROCESS=
else
# Tests debug mode disabled
DEBUGGER=
MULTIPROCESS=-N 4
endif
# Service version based on git revision
VERSION=$(shell git rev-parse HEAD)
PWD=`pwd`
RPM_BUILD_ROOT ?= $(PWD)/build/rpmbuild
all: rpm
build:
skipper build s3-scality
docker tag s3-scality:$(VERSION) s3-scality:last_build
rpm: $(shell find deploy -type f)
rpmbuild -bb -vv --define "_srcdir $(PWD)" --define "_topdir $(RPM_BUILD_ROOT)" deploy/s3-scality/s3-scality-deploy.spec
clean:
rm -rf dist reports *.egg-info build logs .eggs
find -name "*.pyc" -delete
find -name "*~" -delete
package: build rpm
packager pack artifacts.yaml --auto-push
deploy: package generate_upgrade_manifest
upgrade $(IP) update_manifest.json
generate_upgrade_manifest:
python -m packaging_tools/upgrade_manifest_generator artifacts.yaml