rules 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/make -f
  2. # See debhelper(7) (uncomment to enable)
  3. # output every command that modifies files on the build system.
  4. #export DH_VERBOSE = 1
  5. # see FEATURE AREAS in dpkg-buildflags(1)
  6. #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  7. # see ENVIRONMENT in dpkg-buildflags(1)
  8. # package maintainers to append CFLAGS
  9. #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
  10. # package maintainers to append LDFLAGS
  11. #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
  12. build:
  13. cargo build --release
  14. binary-arch: build
  15. binary-indep: build
  16. binary: binary-arch binary-indep
  17. dh_testdir -a
  18. dh_testroot -a
  19. dh_install -a
  20. dh_installdocs -a
  21. dh_installchangelogs -a
  22. dh_strip -a
  23. dh_compress -a
  24. dh_fixperms -a
  25. dh_installdeb -a
  26. dh_shlibdeps -a
  27. dh_gencontrol -a
  28. dh_md5sums -a
  29. dh_builddeb -a
  30. # cargo install --root /usr --bin portspoof
  31. clean:
  32. dh_testdir
  33. dh_testroot
  34. dh_clean
  35. cargo clean
  36. # dh_make generated override targets
  37. # This is example for Cmake (See https://bugs.debian.org/641051 )
  38. #override_dh_auto_configure:
  39. # dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)