debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | # export DH_VERBOSE = 1 |
| 3 | |
| 4 | CFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS) |
| 5 | export PYBUILD_NAME=mininet |
| 6 | |
| 7 | %: |
| 8 | dh $@ --buildsystem=pybuild --with=python3 |
| 9 | |
| 10 | override_dh_auto_build: |
| 11 | make man |
| 12 | make mnexec |
| 13 | # hopefully temporary, since make man/mnexec |
| 14 | # generate *.pyc files |
| 15 | rm -f examples/*.pyc |
| 16 | dh_auto_build |
| 17 | |
| 18 | override_dh_clean: |
| 19 | make clean |
| 20 | dh_clean |