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