debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_DESTDIR_python3=debian/python3-pycparser |
| 4 | export PYBUILD_BEFORE_TEST=ln -s {dir}/examples {dir}/utils {build_dir} |
| 5 | export PYBUILD_AFTER_TEST=rm -f {build_dir}/utils {build_dir}/examples |
| 6 | |
| 7 | %: |
| 8 | dh $@ --with python3 --buildsystem pybuild |
| 9 | |
| 10 | override_dh_auto_build: clean-source |
| 11 | cd pycparser && python3 _ast_gen.py |
| 12 | dh_auto_build |
| 13 | |
| 14 | override_dh_auto_clean: clean-source |
| 15 | dh_auto_clean |
| 16 | |
| 17 | clean-source: |
| 18 | cd pycparser && rm -f c_ast.py |