summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6dd6bef7f78dcf45596d2cdb0378e33e8686df57 (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 : profiles/% profiles/%-z
  16. bin/pkglist2preseed skel/preseed.cfg.in $@ "$^" "$(desktoptweaks)"
  17. $(topicfiles): content/desktop/%/preseed.cfg : profiles/desktop profiles/desktop-% profiles/desktop-z
  18. bin/pkglist2preseed skel/preseed.cfg.in $@ "$^" "$(desktoptweaks)"
  19. $(mainfiles): content/%/preseed.cfg : profiles/% profiles/%-email $(desktoptopiclists) profiles/%-z
  20. bin/pkglist2preseed skel/preseed.cfg.in $@ "$^" "$(desktoptweaks)"
  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 $@ $<