-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
52 lines (39 loc) · 975 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
.PHONY: all dist srpm copr
FEDORA_VERSION = master
all:
run:
sudo rm -rf json-output
mkdir json-output
-sudo ./test-client-server --outdir json-output
json-output/.done:
mkdir -p json-output
$(MAKE) run
touch $@
local: dist spec
fedpkg local
srpm: dist spec
fedpkg --dist $(FEDORA_VERSION) srpm
copr: srpm
copr-cli build network-testing `fedpkg --dist "$(FEDORA_VERSION)" verrel`.src.rpm
dist:
python setup.py sdist
ln -sf dist/*.tar.gz .
spec: network-testing.spec
network-testing.spec: network-testing.spec.in test-client-server Makefile
sed $< -e '/^%description deps$$/Q' >>[email protected]
./test-client-server --deps | sed -e 's/^/Requires: /' >>[email protected]
sed $< -ne '/^%description deps$$/,$$p' >>[email protected]
mv [email protected] $@
clean:
rm -rf dist
rm -rf json-output
rm -rf html-output
rm -rf *.src.rpm
vagrant:
vagrant up --provision
vagrant ssh
html: json-output/.done
./test-client-server-genhtml
show-html: html
xdg-open html-output/index.html