summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7c2336541f75d951d0f7e9be09fa6b307d1bbfaf (plain)
  1. profiles = desktop
  2. desktoptopics = email office 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. all: $(checksumfiles)
  20. sign: $(signfiles)
  21. $(basefiles): content/%/base/preseed.cfg : skel/preseed.cfg.in profiles/% profiles/%-z $(desktoptweaks)
  22. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  23. $(topicfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop profiles/desktop-% profiles/desktop-z $(desktoptweaks)
  24. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  25. $(lcgroupfiles): 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. $(mainfiles): content/%/preseed.cfg : skel/preseed.cfg.in profiles/% $(desktoptopiclists) profiles/%-z $(desktoptweaks)
  28. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  29. $(mdfiles): content/MD%SUMS: $(allfiles)
  30. cd content && md$*sum $(allfiles:content/%=%) > MD$*SUMS~
  31. rm -f $@.sign
  32. mv -f $@~ $@
  33. $(mainlcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop $(desktoptopiclists) $(desktoptopiclcgrouplists) profiles/desktop-z $(desktoptweaks)
  34. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  35. $(shafiles): content/SHA%SUMS: $(allfiles)
  36. cd content && sha$*sum $(allfiles:content/%=%) > SHA$*SUMS~
  37. rm -f $@.sign
  38. mv -f $@~ $@
  39. $(signfiles): %.sign: %
  40. rm -f $@
  41. gpg --detach-sign -a -o $@ $<