-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
48 lines (35 loc) · 962 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
clean:
rm -f -r build/
rm -f belief_propagation_attack/*.so
clean-pyc:
rm -f belief_propagation_attack/*.pyc
clean-c:
rm -f belief_propagation_attack/*.c
clean-output:
rm -f graphs/*
rm -f output/*
clean-logs:
rm -f -r logs/training
rm -f -r logs/validation
clean-all: clean clean-pyc clean-c clean-output
dirs:
mkdir -p graphs/ leakage/ logs/ models/ output/ templates/
.PHONY: build
build: clean dirs
python setup.py build_ext --inplace
mv *.so belief_propagation_attack/
.PHONY: cython-build dirs
cython-build: clean clean-pyc clean-c dirs
python setup.py build_ext --inplace --use-cython
mv *.so belief_propagation_attack/
.PHONY: cython-build
quick-build: dirs
python setup.py build_ext --inplace --use-cython
mv *.so belief_propagation_attack/
quick-build3: dirs
python3 setup.py build_ext --inplace --use-cython
mv *.so belief_propagation_attack/
install:
pip install -r REQUIREMENTS.txt
test:
python tests/test_utility.py