rules 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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) compiler_all
  10. $(MAKE) rtl_all
  11. touch build-stamp
  12. clean:
  13. dh_testdir
  14. dh_testroot
  15. rm -f build-stamp
  16. # Add here commands to clean up after the build process.
  17. $(MAKE) compiler_clean
  18. $(MAKE) rtl_clean
  19. dh_clean
  20. # Build architecture-independent files here.
  21. binary-indep: build
  22. # We have nothing to do by default.
  23. # Build architecture-dependent files here.
  24. binary-arch: build
  25. dh_testversion
  26. dh_testdir
  27. dh_testroot
  28. dh_clean -k
  29. dh_installdirs
  30. # Add here commands to install the files into debian/tmp
  31. $(MAKE) compiler_installlib PREFIXINSTALLDIR=`pwd`/debian/tmp/usr
  32. $(MAKE) rtl_install PREFIXINSTALLDIR=`pwd`/debian/tmp/usr
  33. # dh_installdocs TODO NEWS AUTHORS KNOWNBUGS README README.guile
  34. dh_installexamples
  35. dh_installmenu
  36. # dh_installinit
  37. # dh_installcron
  38. # dh_installmanpages
  39. # dh_undocumented
  40. # dh_installchangelogs ChangeLog
  41. dh_strip
  42. dh_compress
  43. dh_fixperms
  44. dh_suidregister
  45. dh_installdeb
  46. dh_shlibdeps
  47. dh_gencontrol
  48. dh_makeshlibs
  49. dh_md5sums
  50. dh_builddeb
  51. source diff:
  52. @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
  53. binary: binary-indep binary-arch
  54. .PHONY: build clean binary-indep binary-arch binary