rules 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/make -f
  2. # Made with the aid of dh_make, by Petr Cech.
  3. # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
  4. # Some lines taken from debmake, by Christoph Lameter.
  5. build:
  6. dh_testdir
  7. make lib CXXFLAGS+="-fPIC -DSILENT" LDFLAGS+="-Wl,-soname,libunrar.so.0"
  8. clean:
  9. dh_testdir
  10. dh_testroot
  11. make clean
  12. rm -f libunrar.so
  13. dh_clean
  14. # Build architecture-independent files here.
  15. binary-indep: build
  16. # We have nothing to do by default.
  17. # Build architecture-dependent files here.
  18. binary-arch: build
  19. dh_testdir
  20. dh_testroot
  21. dh_prep
  22. dh_installdirs
  23. install -o root -g root -s -m 0644 libunrar.so debian/libunrar/usr/lib
  24. install -m 0644 debian/lintian/libunrar debian/libunrar/usr/share/lintian/overrides
  25. dh_link usr/lib/libunrar.so usr/lib/libunrar.so.0
  26. dh_installdocs
  27. dh_installchangelogs
  28. dh_strip
  29. dh_compress
  30. dh_fixperms
  31. dh_installdeb
  32. dh_shlibdeps
  33. dh_gencontrol
  34. dh_md5sums
  35. dh_builddeb
  36. binary: binary-indep binary-arch
  37. .PHONY: build clean binary-indep binary-arch binary