-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
74 lines (46 loc) · 1.79 KB
/
Makefile
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
69
70
71
72
73
74
PYTHON = python3
.PHONY: help clean install build log source html man completion sample_config test test-docker test-podman
help:
@echo "Usage: make <target>"
@echo
@echo "Available targets are:"
@echo " help show this text"
@echo " clean remove python bytecode and temp files"
@echo " install install program on current system"
@echo " build build program"
@echo " log prepare changelog for spec file"
@echo " source create source tarball"
@echo " html create HTML documentation"
@echo " man generate manual page"
@echo " completion generate bash completion script"
@echo " test run test suite"
@echo " test-docker run containerized test suite using docker-compose for several Fedora releases"
@echo " test-podman run containerized test suite in a pod using podman for several Fedora releases"
clean:
rm -rf dist
rm -rf build
rm -rf rebasehelper.egg-info
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
install: build
$(PYTHON) -m pip install --no-deps dist/rebasehelper-*.whl
build:
$(PYTHON) -m build
log:
@(LC_ALL=C date +"* %a %b %e %Y `git config --get user.name` <`git config --get user.email`> - VERSION"; git log --pretty="format:- %s (%an)" | cat) | less
source:
$(PYTHON) -m build --sdist
html:
make -C docs html
man:
make -C docs man
completion:
$(PYTHON) -m rebasehelper.completion rebase-helper.bash.in rebase-helper.bash
sample_config:
$(PYTHON) -m rebasehelper.sample_config rebase-helper.cfg
test:
tox
test-docker:
make -C containers -f Makefile.docker test
test-podman:
make -C containers -f Makefile.podman test