summaryrefslogtreecommitdiff
path: root/Makefile
blob: 70e6768518b86395e92bdddffa502ae42767456a (plain)
  1. maintopics = 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,$(maintopics))
  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,$(maintopics))
  14. mainlcgroupfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(lcgroups))
  15. profiles-di = $(basefiles) $(topicfiles) $(lcgroupfiles) $(mainfiles) $(mainlcgroupfiles)
  16. profiles = $(profiles-di)
  17. mdfiles = content/MD5SUMS
  18. shafiles = $(patsubst %,content/SHA%SUMS,1 256 512)
  19. checksumfiles = $(mdfiles) $(shafiles)
  20. signfiles = $(patsubst %,%.sign,$(checksumfiles))
  21. info = content/NEWS
  22. all: $(checksumfiles) $(info)
  23. sign: $(signfiles)
  24. $(basefiles): content/%/base/preseed.cfg : skel/preseed.cfg.in profiles/% profiles/%-z $(desktoptweaks)
  25. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  26. $(topicfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop profiles/desktop-% profiles/desktop-z $(desktoptweaks)
  27. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  28. $(lcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop profiles/desktop-% profiles/desktop-z $(desktoptweaks)
  29. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  30. $(mainfiles): content/%/preseed.cfg : skel/preseed.cfg.in profiles/% $(desktoptopiclists) profiles/%-z $(desktoptweaks)
  31. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  32. $(mainlcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop $(desktoptopiclists) $(desktoptopiclcgrouplists) profiles/desktop-z $(desktoptweaks)
  33. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  34. $(mdfiles): content/MD%SUMS: $(profiles)
  35. cd content && md$*sum $(profiles:content/%=%) > MD$*SUMS~
  36. rm -f $@.sign
  37. mv -f $@~ $@
  38. $(shafiles): content/SHA%SUMS: $(profiles)
  39. cd content && sha$*sum $(profiles:content/%=%) > SHA$*SUMS~
  40. rm -f $@.sign
  41. mv -f $@~ $@
  42. $(signfiles): %.sign: %
  43. rm -f $@
  44. gpg --detach-sign -a -o $@ $<
  45. $(info): content/% : %
  46. cp -f $< $@
  47. clean:
  48. rm -f $(profiles) $(info) $(checksumfiles) $(signfiles)