-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile.centos
52 lines (40 loc) · 1.29 KB
/
Makefile.centos
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
# should be run in directory with source snapshot with singularity
#
# For example:
# singularity exec centos-7.img make -f Makefile.centos daily-package
#
# Assume ". /opt/rh/devtoolset-9/enable" has been done already on CentOS 7
#
TOP = .
TOP := $(shell (cd "$(TOP)"; pwd))
include $(TOP)/mk/config.make
ifeq (,$(CENTOS))
CENTOS = $(shell . /etc/os-release && echo $$VERSION_ID | cut -d'.' -f 1)
endif
install: centos
env HOME=`pwd` $(MAKE) install CENTOS_DIST=$(CENTOS)
build-minimal: centos
env HOME=`pwd` $(MAKE) build-minimal CENTOS_DIST=$(CENTOS)
install-rbvi: centos
env HOME=`pwd` $(MAKE) install-rbvi CENTOS_DIST=$(CENTOS)
package: centos
env HOME=`pwd` $(APP_PYTHON_EXE) mkcentos.py $(CENTOS)
daily-package: centos
env HOME=`pwd` $(APP_PYTHON_EXE) mkcentos.py $(CENTOS) daily
techpreview-package: centos
env HOME=`pwd` $(APP_PYTHON_EXE) mkcentos.py $(CENTOS) techpreview
github-techpreview-package: centos
env HOME=`pwd` $(APP_PYTHON_EXE) mkcentos.py $(CENTOS) github-techpreview
candidate-package: centos
env HOME=`pwd` $(APP_PYTHON_EXE) mkcentos.py $(CENTOS) candidate
centos:
ifeq (,$(CENTOS))
$(error "Set the CENTOS version variable on the command line")
@exit 1
else
@exit 0
endif
clean:
rm -rf .rpmmacros rpmbuild
lint:
rpmlint -i -f rpmlint-config rpmbuild/RPMS/x86_64/*.rpm