summaryrefslogtreecommitdiff
path: root/debian/rules
blob: af33131d9b92554414e67258a2aa397374ef5ce3 (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)
  7. $(MAKE) test
  8. touch build-stamp
  9. clean:
  10. dh_testdir
  11. dh_testroot
  12. rm -f build-stamp
  13. perl Makefile.PL
  14. if [ -e Makefile ]; then $(MAKE) realclean; fi
  15. dh_clean
  16. binary-arch: build
  17. binary-indep: build
  18. dh_testdir
  19. dh_testroot
  20. dh_clean -k
  21. $(MAKE) pure_install DESTDIR=$(shell pwd)/debian/ikiwiki
  22. dh_install wikilist etc/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