rules 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. export PYBUILD_NAME = qubesadmin
  6. # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
  7. DPKG_EXPORT_BUILDFLAGS = 1
  8. include /usr/share/dpkg/default.mk
  9. # see FEATURE AREAS in dpkg-buildflags(1)
  10. #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  11. # see ENVIRONMENT in dpkg-buildflags(1)
  12. # package maintainers to append CFLAGS
  13. #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
  14. # package maintainers to append LDFLAGS
  15. #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
  16. # main packaging script based on dh7 syntax
  17. %:
  18. dh $@ --with python3,sphinxdoc --buildsystem=pybuild
  19. override_dh_auto_build: export http_proxy=127.0.0.1:9
  20. override_dh_auto_build: export https_proxy=127.0.0.1:9
  21. override_dh_auto_build:
  22. dh_auto_build
  23. PYTHONPATH=. sphinx-build -N -bhtml doc build/html
  24. PYTHONPATH=. sphinx-build -N -bman doc build/man
  25. override_dh_auto_install:
  26. dh_auto_install
  27. mkdir -p debian/qubes-core-admin-client/usr/bin
  28. mv debian/python3-qubesadmin/usr/bin/* debian/qubes-core-admin-client/usr/bin/
  29. install -d debian/qubes-core-admin-client/usr/share/man/man1
  30. install -m 0644 build/man/* \
  31. debian/qubes-core-admin-client/usr/share/man/man1/
  32. override_dh_clean:
  33. dh_clean -O--buildsystem=pybuild
  34. make clean
  35. # debmake generated override targets
  36. # This is example for Cmake (See http://bugs.debian.org/641051 )
  37. #override_dh_auto_configure:
  38. # dh_auto_configure -- \
  39. # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)