Debian Codegraph @

Makefile

raw symbols SCIP
1 CWD=$(shell pwd)
2 VARIANT ?= ubuntu
3
4 PYTHON ?= python3
5
6 NUM_ITER ?= 100
7
8 distro ?= redhat
9
10 GENERATOR_F=./systemd/cloud-init-generator
11 DS_IDENTIFY=./tools/ds-identify
12
13
14 all: check
15
16 check: test
17
18 unittest: clean_pyc
19 $(PYTHON) -m pytest -v tests/unittests cloudinit
20
21 render-template:
22 $(PYTHON) ./tools/render-template --variant=$(VARIANT) $(FILE) $(subst .tmpl,,$(FILE))
23
24 ci-deps-ubuntu:
25 @$(PYTHON) $(CWD)/tools/read-dependencies --distro ubuntu --test-distro
26
27 ci-deps-centos:
28 @$(PYTHON) $(CWD)/tools/read-dependencies --distro centos --test-distro
29
30 test: unittest
31
32 config/cloud.cfg:
33 $(PYTHON) ./tools/render-template --is-yaml config/cloud.cfg.tmpl config/cloud.cfg
34
35 clean_pyc:
36 @find . -type f -name "*.pyc" -delete
37 @find . -type d -name __pycache__ -delete
38
39 clean_pytest:
40 rm -rf .cache htmlcov
41
42 clean_packaging:
43 rm -rf srpm cloud_init.egg-info/ \
44 cloud-init-*.tar.gz \
45 cloud-init-*.tar.gz.asc \
46 cloud-init.dsc \
47 cloud-init_*.build \
48 cloud-init_*.buildinfo \
49 cloud-init_*.changes \
50 cloud-init_*.deb \
51 cloud-init_*.dsc \
52 cloud-init_*.orig.tar.gz \
53 cloud-init_*.tar.xz \
54 cloud-init_*.upload
55
56 clean_release:
57 rm -rf new-upstream-changes.txt commit.msg
58
59 clean: clean_pyc clean_pytest clean_packaging clean_release
60 rm -rf doc/rtd_html .tox .coverage tags $(GENERATOR_F)
61
62 rpm:
63 $(PYTHON) ./packages/brpm --distro=$(distro)
64
65 srpm:
66 $(PYTHON) ./packages/brpm --srpm --distro=$(distro)
67
68 deb:
69 @which debuild || \
70 { echo "Missing devscripts dependency. Install with:"; \
71 echo sudo apt-get install devscripts; exit 1; }
72
73 $(PYTHON) ./packages/bddeb
74
75 deb-src:
76 @which debuild || \
77 { echo "Missing devscripts dependency. Install with:"; \
78 echo sudo apt-get install devscripts; exit 1; }
79 $(PYTHON) ./packages/bddeb -S -d
80
81 doc:
82 tox -e doc
83
84 .PHONY: all check test clean rpm srpm deb deb-src clean_pyc
85 .PHONY: unittest render-template
86 .PHONY: clean_pytest clean_packaging clean_release doc