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