summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 2af69a5f793753418b8a31a4e6376ccb41479f90 (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_install wikilist etc/ikiwiki
  24. dh_installdocs html
  25. dh_installexamples doc/examples/*
  26. dh_link usr/share/common-licenses/GPL-2 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