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