rules 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/usr/bin/make -f
  2. # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. build: build-stamp
  6. build-stamp:
  7. dh_testdir
  8. # Add here commands to compile the package.
  9. $(MAKE)
  10. touch build-stamp
  11. clean:
  12. dh_testdir
  13. dh_testroot
  14. rm -f build-stamp
  15. # Add here commands to clean up after the build process.
  16. -$(MAKE) clean
  17. dh_clean
  18. # Build architecture-independent files here.
  19. binary-indep: build
  20. # We have nothing to do by default.
  21. # Build architecture-dependent files here.
  22. binary-arch: build
  23. dh_testversion
  24. dh_testdir
  25. dh_testroot
  26. dh_clean -k
  27. dh_installdirs
  28. # Add here commands to install the files into debian/tmp
  29. $(MAKE) PREFIXINSTALLDIR=`pwd`/debian/tmp/usr install
  30. # dh_installdocs TODO NEWS AUTHORS KNOWNBUGS README README.guile
  31. dh_installexamples
  32. dh_installmenu
  33. # dh_installinit
  34. # dh_installcron
  35. # dh_installmanpages
  36. # dh_undocumented
  37. # dh_installchangelogs ChangeLog
  38. dh_strip
  39. dh_compress
  40. dh_fixperms
  41. dh_suidregister
  42. dh_installdeb
  43. dh_shlibdeps
  44. dh_gencontrol
  45. dh_makeshlibs
  46. dh_md5sums
  47. dh_builddeb
  48. source diff:
  49. @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
  50. binary: binary-indep binary-arch
  51. .PHONY: build clean binary-indep binary-arch binary