You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

78 lines
2.9 KiB

  1. DOMAIN=debian-tasks
  2. TASKDESC=$(DOMAIN).desc
  3. TASKDIR=/usr/share/tasksel
  4. DESCDIR=tasks
  5. DESCPO=$(DESCDIR)/po
  6. VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)' | cut -d - -f 1)
  7. LANGS=ar bg bn bs ca cs cy da de dz el eo es et eu fa fi fr gl gu he hi hr hu hy id it ja km ko lt lv mg mk nb ne nl nn pa pl pt_BR pt ro ru sk sl sq sv ta te th tl tr uk vi wo zh_CN zh_TW
  8. LANGS_DESC=ar bg bn bs ca cs cy da de dz el eo es et et eu fi fr gl gu he hi hr hu id it ja km ko lt lv mg mk nb ne nl nn pa pl pt_BR pt ro ru sk sl sq sv te th tl tr uk vi wo zh_CN zh_TW
  9. LOCALEDIR=$(DESTDIR)/usr/share/locale
  10. all: $(TASKDESC) $(DESCPO)/build_stamp po/build_stamp override
  11. $(TASKDESC): makedesc.pl $(DESCDIR)/[a-z]??*
  12. ./doincludes.pl $(DESCDIR)
  13. ./makedesc.pl $(DESCDIR) $(TASKDESC)
  14. %.o: %.c
  15. $(COMPILE) $<
  16. po/build_stamp:
  17. $(MAKE) -C po LANGS="$(LANGS)"
  18. updatepo:
  19. $(MAKE) -C po update LANGS="$(LANGS)"
  20. $(DESCPO)/build_stamp:
  21. $(MAKE) -C $(DESCPO) LANGS="$(LANGS_DESC)"
  22. updatetaskspo:
  23. $(MAKE) -C $(DESCPO) update LANGS="$(LANGS_DESC)"
  24. install:
  25. install -d $(DESTDIR)/usr/bin \
  26. $(DESTDIR)/usr/lib/tasksel/tests \
  27. $(DESTDIR)/usr/lib/tasksel/packages \
  28. $(DESTDIR)/usr/share/man/man8
  29. install -m 755 tasksel.pl $(DESTDIR)/usr/bin/tasksel
  30. install -m 755 tasksel-debconf $(DESTDIR)/usr/lib/tasksel/
  31. install -m 755 tests/new-install $(DESTDIR)/usr/lib/tasksel/tests/
  32. install -m 755 tests/debconf $(DESTDIR)/usr/lib/tasksel/tests/
  33. install -m 755 tests/lang $(DESTDIR)/usr/lib/tasksel/tests/
  34. install -m 755 packages/list $(DESTDIR)/usr/lib/tasksel/packages/
  35. pod2man --section=8 --center "Debian specific manpage" --release $(VERSION) tasksel.pod | gzip -9c > $(DESTDIR)/usr/share/man/man8/tasksel.8.gz
  36. for lang in $(LANGS); do \
  37. [ ! -d $(LOCALEDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCALEDIR)/$$lang/LC_MESSAGES/; \
  38. install -m 644 po/$$lang.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/tasksel.mo; \
  39. done
  40. install-data:
  41. install -d $(DESTDIR)$(TASKDIR)/descs \
  42. $(DESTDIR)/usr/lib/tasksel/tests
  43. install -m 0644 $(TASKDESC) $(DESTDIR)$(TASKDIR)/descs
  44. for test in tests/*; do \
  45. [ "$$test" = "tests/new-install" ] && continue; \
  46. [ "$$test" = "tests/debconf" ] && continue; \
  47. [ "$$test" = "tests/lang" ] && continue; \
  48. install -m 755 $$test $(DESTDIR)/usr/lib/tasksel/tests/; \
  49. done
  50. for package in packages/*; do \
  51. [ "$$package" = "packages/list" ] && continue; \
  52. install -m 755 $$package $(DESTDIR)/usr/lib/tasksel/packages/; \
  53. done
  54. for lang in $(LANGS_DESC); do \
  55. [ ! -d $(LOCALEDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCALEDIR)/$$lang/LC_MESSAGES/; \
  56. install -m 644 tasks/po/$$lang.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
  57. done
  58. clean:
  59. rm -f $(TASKDESC) *~
  60. rm -rf debian/external-overrides
  61. $(MAKE) -C po clean
  62. $(MAKE) -C $(DESCPO) clean
  63. # This taget is run to generate the overrides files.
  64. override:
  65. @mkdir -p debian/external-overrides
  66. @./makeoverride.pl $(DESCDIR) > debian/external-overrides/task