ufes-20191-redes-mininet/proj-impl/Makefile
2019-07-01 20:44:01 -03:00

74 lines
1.6 KiB
Makefile

testall: __all__.autotests.json
@echo -n ""
__all__.autotests.json: clos.json clos5.json bigtopo.json simpletree.json fattree.json principle.json bipartite.json dcellswitched.json bcubeswitched.json
mn -c
./topoautostandalonetest.py 25 clos clos5 bigtopo simpletree fattree principle bipartite dcellswitched bcubeswitched
-rm -f *.state
testdcell:
mn -c
nohup ryu-manager latencycontroller.py dcellswitched.json&
./topoautotest.py dcellswitched
mn -c
-rm -f nohup.out
-rm -f dcellswitched.autotest.json
generatetopos:
./topocreatedcell.py
./topocreatedcellswitched.py
./topocreatebcube.py
./topocreatebcubeswitched.py
./topocreatebig.py
./topocreatebipartite.py
./topocreateclos.py
./topocreateclos5.py
./topocreatefattree.py
./topocreatesimpletree.py
./topomn2json.py principle
allpdfs: nopdfs clos.pdf clos5.pdf bigtopo.pdf simpletree.pdf fattree.pdf principle.pdf bipartite.pdf dcellswitched.pdf bcubeswitched.pdf dcell.pdf bcube.pdf
@echo -n ""
nopdfs:
rm -f clos.pdf clos5.pdf bigtopo.pdf simpletree.pdf fattree.pdf principle.pdf bipartite.pdf dcellswitched.pdf bcubeswitched.pdf dcell.pdf bcube.pdf
rm -f *.pdf.bw.txt
%.pdf: %.json
./toporenderpdfgraph.py $<
pdfcrop $@ tmp.pdf
mv tmp.pdf $@
dcell.json:
./topocreatedcell.py
dcellswitched.json:
./topocreatedcellswitched.py
bcube.json:
./topocreatebcube.py
bcubeswitched.json:
./topocreatebcubeswitched.py
bigtopo.json:
./topocreatebig.py
bipartite.json:
./topocreatebipartite.py
clos.json:
./topocreateclos.py
clos5.json:
./topocreateclos5.py
fattree.json:
./topocreatefattree.py
simpletree.json:
./topocreatesimpletree.py
principle.json:
./topomn2json.py principle