rules 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #!/usr/bin/make -f
  2. # debian/rules for Debian-Med.
  3. # GNU copyright 2004 Andreas Tille, GPL.
  4. # Uncomment this to turn on verbose mode.
  5. #export DH_VERBOSE=1
  6. cdd=junior
  7. pkgsrc=debian-$(cdd)
  8. build: build-stamp
  9. build-stamp:
  10. dh_testdir
  11. cdd-gen-control -c -m -i -t
  12. #/usr/bin/docbook-to-man debian/meta-$(cdd).sgml > meta-$(cdd).1
  13. touch build-stamp
  14. clean: debian/control tasks/* debian/control.stub
  15. dh_testdir
  16. dh_testroot
  17. rm -f build-stamp
  18. cdd-clean-helper
  19. install: build
  20. dh_testdir
  21. dh_testroot
  22. dh_clean -k
  23. dh_installdirs
  24. # Build architecture-dependent files here.
  25. binary-arch: build install
  26. # We have nothing to do by default.
  27. # Build architecture-independent files here.
  28. binary-indep: build install
  29. dh_testdir
  30. dh_testroot
  31. dh_installdocs
  32. dh_installexamples
  33. dh_installmenu
  34. # dh_installlogrotate
  35. # dh_installemacsen
  36. # dh_installpam
  37. # dh_installmime
  38. # dh_installinit
  39. dh_installcron
  40. dh_installman
  41. cdd-install-helper
  42. dh_install
  43. dh_installdebconf
  44. # dh_installinfo
  45. dh_installchangelogs
  46. dh_link
  47. dh_strip
  48. dh_compress
  49. dh_fixperms
  50. # dh_makeshlibs
  51. dh_installdeb
  52. # dh_perl
  53. dh_shlibdeps
  54. dh_gencontrol
  55. dh_md5sums
  56. dh_builddeb
  57. dist:
  58. distdir=$(pkgsrc)-`cat VERSION` ; \
  59. rm -rf $${distdir} ; \
  60. mkdir $${distdir} ; \
  61. chmod 777 $${distdir} ; \
  62. rsync -a --exclude $${distdir} --exclude CVS --exclude .svn * $${distdir} ; \
  63. ln -s control.stub $${distdir}/debian/control ; \
  64. GZIP=-9 tar -czf ../$(pkgsrc)_`cat VERSION`.tar.gz $${distdir} ; \
  65. rm -rf $${distdir}
  66. binary: binary-indep binary-arch
  67. .PHONY: build clean binary-indep binary-arch binary install