| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | # |
| 4 | # Liang Guo <[email protected]> 2010 |
| 5 | # YunQiang Su <[email protected]>, 2012 |
| 6 | # |
| 7 | # Uncomment this to turn on verbose mode. |
| 8 | # export DH_VERBOSE=1 |
| 9 | |
| 10 | # see FEATURE AREAS in dpkg-buildflags(1) |
| 11 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 12 | |
| 13 | # see ENVIRONMENT in dpkg-buildflags(1) |
| 14 | # package maintainers to append CFLAGS |
| 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 16 | # package maintainers to append LDFLAGS |
| 17 | export DEB_LDFLAGS_MAINT_APPEND = |
| 18 | |
| 19 | SCONS=scons |
| 20 | |
| 21 | %: |
| 22 | dh $@ --with python3 |
| 23 | |
| 24 | override_dh_auto_configure: |
| 25 | |
| 26 | override_dh_auto_build: |
| 27 | $(SCONS) --prefix=$(DEB_DESTDIR)/usr |
| 28 | |
| 29 | execute_after_dh_auto_clean: |
| 30 | $(SCONS) -c |
| 31 | rm -f .sconsign.dblite config.log configure.conf |
| 32 | |
| 33 | override_dh_auto_install: |
| 34 | $(SCONS) install --prefix=$(DEB_DESTDIR)/usr --install-sandbox=debian/tmp |