forked from svinota/mdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 1009 Bytes
/
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
# Copyright (c) 2012 Peter V. Saveliev
#
# This file is part of mdns project.
#
# For license agreement, please look into LICENSE file.
version ?= "1.0"
release ?= "1.0.0"
python ?= "python"
ifdef root
override root := "--root=${root}"
endif
ifdef lib
override lib := "--install-lib=${lib}"
endif
all:
@echo targets: dist, install
clean: clean-version
rm -rf dist build MANIFEST
find . -name "*pyc" -exec rm -f "{}" \;
check:
for i in mdns; \
do pep8 $$i || exit 1; \
pyflakes $$i || exit 2; \
done
setup.py:
gawk -v version=${version} -v release=${release} -v flavor=${flavor}\
-f configure.gawk [email protected] >$@
clean-version:
rm -f setup.py
update-version: setup.py
force-version: clean-version update-version
docs: clean force-version
make -C docs html
dist: clean force-version
${python} setup.py sdist
upload: clean force-version
${python} setup.py sdist upload
rpm: dist
rpmbuild -ta dist/*tar.gz
install: clean force-version
${python} setup.py install ${root} ${lib}