summaryrefslogtreecommitdiff
path: root/debian/rules
blob: fc703fc9035bc316320966af9e750532efb5b419 (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_link usr/share/ikiwiki/basewiki \
  26. usr/share/doc/ikiwiki/examples/basewiki
  27. dh_installman ikiwiki.man
  28. dh_installchangelogs
  29. dh_compress -X html
  30. dh_fixperms
  31. dh_perl
  32. dh_installdeb
  33. dh_gencontrol
  34. dh_md5sums
  35. dh_builddeb
  36. binary: binary-indep binary-arch
  37. .PHONY: build clean binary-indep binary-arch binary