forked from openafs-contrib/robotframework-openafslibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
104 lines (82 loc) · 2.59 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright (c) 2018 Sine Nomine Associates
help:
@echo "usage: make <target> [<target> ...]"
@echo ""
@echo "Packaging targets:"
@echo " sdist create source distribution"
@echo " wheel create wheel distribution"
@echo " rpm create rpm package"
@echo " deb create deb package"
@echo " upload upload packages to pypi.org"
@echo ""
@echo "Installation targets:"
@echo " install install package"
@echo " uninstall uninstall package"
@echo " install-user user mode install"
@echo " uninstall-user user mode uninstall"
@echo " install-dev developer mode install"
@echo " uninstall-dev developer mode uninstall"
@echo ""
@echo "Development targets:"
@echo " lint run python linter"
@echo " checkdocs validate documents"
@echo " test run unit tests"
@echo " clean delete generated files"
@echo " distclean delete generated and config files"
Makefile.config: configure.py
python configure.py > $@
include Makefile.config
generated: OpenAFSLibrary/__version__.py
OpenAFSLibrary/__version__.py:
echo "VERSION = '$(VERSION)'" >$@
source = \
OpenAFSLibrary/command.py \
OpenAFSLibrary/__init__.py \
OpenAFSLibrary/variable.py \
OpenAFSLibrary/keywords/acl.py \
OpenAFSLibrary/keywords/cache.py \
OpenAFSLibrary/keywords/command.py \
OpenAFSLibrary/keywords/dump.py \
OpenAFSLibrary/keywords/__init__.py \
OpenAFSLibrary/keywords/login.py \
OpenAFSLibrary/keywords/pag.py \
OpenAFSLibrary/keywords/path.py \
OpenAFSLibrary/keywords/rx.py \
OpenAFSLibrary/keywords/volume.py
lint: generated
$(PYFLAKES) $(source)
checkdocs: # requires collection.checkdocs
$(PYTHON) setup.py checkdocs
test: generated
$(PYTHON) -m unittest -v test
sdist: generated
$(PYTHON) setup.py sdist
wheel: generated
$(PYTHON) setup.py bdist_wheel
rpm: generated
$(PYTHON) setup.py bdist_rpm
deb: generated
$(PYTHON) setup.py --command-packages=stdeb.command bdist_deb
upload: sdist wheel
twine upload dist/*
install: generated
$(MAKE) -f Makefile.$(INSTALL) $@
install-user: generated
$(MAKE) -f Makefile.$(INSTALL) $@
install-dev: generated
$(MAKE) -f Makefile.$(INSTALL) $@
uninstall:
$(MAKE) -f Makefile.$(INSTALL) $@
uninstall-user:
$(MAKE) -f Makefile.$(INSTALL) $@
uninstall-dev:
$(MAKE) -f Makefile.$(INSTALL) $@
clean:
rm -f *.pyc test/*.pyc OpenAFSLibrary/*.pyc OpenAFSLibrary/keywords/*.pyc
rm -fr $(NAME).egg-info/ build/ dist/
rm -fr $(NAME)*.tar.gz deb_dist/
rm -f MANIFEST
distclean: clean
rm -f OpenAFSLibrary/__version__.py
rm -f Makefile.config
rm -f files.txt