summaryrefslogtreecommitdiff
path: root/Makefile
blob: 66fd15e50eed241a1a7314140f4bfcfa45758e24 (plain)
  1. profiles = desktop
  2. desktoptopics = email media mobile office scheduling web
  3. lcdesktoptopics = email office web
  4. lcgroups = all eu
  5. desktoptopiclists = $(patsubst %,profiles/desktop-%,$(desktoptopics))
  6. desktoptopiclcgrouplists = $(foreach topic,$(lcdesktoptopics),\
  7. profiles/desktop-$(topic)-%)
  8. desktoptweaks = tweaks/base tweaks/desktop
  9. basefiles = $(patsubst %,content/%/base/preseed.cfg,$(profiles))
  10. topicfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(desktoptopics))
  11. lcgroupfiles = $(foreach lcgroup,$(lcgroups),\
  12. $(patsubst %,content/desktop/%-$(lcgroup)/preseed.cfg,$(lcdesktoptopics)))
  13. mainfiles = $(patsubst %,content/%/preseed.cfg,$(profiles))
  14. mainlcgroupfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(lcgroups))
  15. allfiles = $(basefiles) $(topicfiles) $(lcgroupfiles) $(mainfiles) $(mainlcgroupfiles)
  16. mdfiles = content/MD5SUMS
  17. shafiles = $(patsubst %,content/SHA%SUMS,1 256 512)
  18. checksumfiles = $(mdfiles) $(shafiles)
  19. signfiles = $(patsubst %,%.sign,$(checksumfiles))
  20. info = content/NEWS
  21. all: $(checksumfiles) $(info)
  22. sign: $(signfiles)
  23. $(basefiles): content/%/base/preseed.cfg : skel/preseed.cfg.in profiles/% profiles/%-z $(desktoptweaks)
  24. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  25. $(topicfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop profiles/desktop-% profiles/desktop-z $(desktoptweaks)
  26. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  27. $(lcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop profiles/desktop-% profiles/desktop-z $(desktoptweaks)
  28. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  29. $(mainfiles): content/%/preseed.cfg : skel/preseed.cfg.in profiles/% $(desktoptopiclists) profiles/%-z $(desktoptweaks)
  30. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  31. $(mdfiles): content/MD%SUMS: $(allfiles)
  32. cd content && md$*sum $(allfiles:content/%=%) > MD$*SUMS~
  33. rm -f $@.sign
  34. mv -f $@~ $@
  35. $(mainlcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop $(desktoptopiclists) $(desktoptopiclcgrouplists) profiles/desktop-z $(desktoptweaks)
  36. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  37. $(shafiles): content/SHA%SUMS: $(allfiles)
  38. cd content && sha$*sum $(allfiles:content/%=%) > SHA$*SUMS~
  39. rm -f $@.sign
  40. mv -f $@~ $@
  41. $(signfiles): %.sign: %
  42. rm -f $@
  43. gpg --detach-sign -a -o $@ $<
  44. $(info): content/% : %
  45. cp -f $< $@