summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 6ca612c9ee82f72daaf92cdf81165d7eb52abb41 (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_installdocs html
  23. dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
  24. dh_link usr/share/ikiwiki/basewiki \
  25. usr/share/doc/ikiwiki/examples/basewiki
  26. dh_installman ikiwiki.man
  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. binary: binary-indep binary-arch
  36. .PHONY: build clean binary-indep binary-arch binary