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