summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 48ce274db6e1908eb5bf9ae11955140a218c336e (plain)
  1. #!/usr/bin/make -f
  2. build: build-stamp
  3. build-stamp:
  4. dh_testdir
  5. perl Makefile.PL
  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. PREFIX=$(shell pwd)/debian/ikiwiki/$(shell perl -MConfig -e 'print $$Config{prefix}')
  23. dh_install wikilist etc/ikiwiki
  24. dh_installdocs html
  25. dh_link usr/share/common-licenses/GPL 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