| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | export PYBUILD_NAME = beangrow |
| 5 | |
| 6 | %: |
| 7 | dh $@ --buildsystem=pybuild |
| 8 | |
| 9 | execute_before_dh_auto_build: |
| 10 | # Regenerate config_pb2.py from .proto file |
| 11 | # See https://github.com/beancount/beangrow/pull/22 |
| 12 | $(MAKE) -C beangrow |
| 13 | |
| 14 | execute_after_dh_clean: |
| 15 | # Explicitly remove config_pb2.py, we regenerate it |
| 16 | rm -fv beangrow/config_pb2.py |
| 17 | |
| 18 | execute_after_dh_auto_install: |
| 19 | # Do not include the Makefile |
| 20 | find debian/ -name Makefile -type f -delete |