summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 25b1f57b6a636ffe170efaf6b208bb61346ef9b9 (plain)
  1. #!/usr/bin/make -f
  2. build: build-stamp
  3. build-stamp:
  4. dh_testdir
  5. perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
  6. $(MAKE) -C po
  7. $(MAKE)
  8. $(MAKE) test
  9. touch build-stamp
  10. clean:
  11. dh_testdir
  12. dh_testroot
  13. rm -f build-stamp
  14. perl Makefile.PL
  15. if [ -e Makefile ]; then $(MAKE) realclean; fi
  16. dh_clean
  17. binary-arch: build
  18. binary-indep: build
  19. dh_testdir
  20. dh_testroot
  21. dh_clean -k
  22. $(MAKE) pure_install DESTDIR=$(shell pwd)/debian/ikiwiki
  23. dh_installdocs html
  24. dh_installexamples doc/examples/*
  25. dh_link usr/share/common-licenses/GPL-2 usr/share/doc/ikiwiki/html/GPL
  26. dh_installchangelogs
  27. dh_compress -X html
  28. dh_fixperms
  29. dh_perl
  30. dh_installdeb
  31. dh_gencontrol
  32. dh_md5sums
  33. dh_builddeb
  34. # Not intended for use by anyone except the author.
  35. announcedir:
  36. @echo ${HOME}/src/ikiwiki/doc/news
  37. binary: binary-indep binary-arch
  38. .PHONY: build clean binary-indep binary-arch binary