summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 4e14b5ca34cb11f4580d116d1f65aa9b85f89e0e (plain)
  1. #!/usr/bin/make -f
  2. build: build-stamp
  3. build-stamp:
  4. dh_testdir
  5. perl Makefile.PL PREFIX=/usr
  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. -$(MAKE) realclean
  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 INSTALLDIRS=vendor \
  22. DESTDIR=$(shell pwd)/debian/ikiwiki
  23. dh_install wikilist etc/ikiwiki
  24. dh_installdocs html
  25. dh_installexamples doc/examples
  26. dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
  27. dh_installchangelogs
  28. dh_compress -X html
  29. dh_fixperms
  30. dh_perl
  31. dh_installdeb
  32. dh_gencontrol
  33. dh_md5sums
  34. dh_builddeb
  35. # Not intended for use by anyone except the author.
  36. announcedir:
  37. @echo ${HOME}/src/ikiwiki/doc/news
  38. binary: binary-indep binary-arch
  39. .PHONY: build clean binary-indep binary-arch binary