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