summaryrefslogtreecommitdiff
path: root/Makefile
blob: b123cc51f7b699896483ba9c040035f1e860208f (plain)
  1. maintopics = desktop
  2. desktoptopics = email media mobile office scheduling web
  3. lcdesktoptopics = email office web
  4. lcgroups = all eu
  5. desktoptopiclists = $(patsubst %,profiles/desktop-%,$(desktoptopics))
  6. desktoptopiclcgrouplists = $(foreach topic,$(lcdesktoptopics),\
  7. profiles/desktop-$(topic)-%)
  8. desktoptweaks = tweaks/base tweaks/desktop
  9. mainfiles = $(patsubst %,content/%/preseed.cfg,$(maintopics))
  10. mainlcgroupfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(lcgroups))
  11. profiles-di = $(mainfiles) $(mainlcgroupfiles)
  12. profiles-script = $(patsubst %/preseed.cfg,%/script.sh,$(profiles-di))
  13. profiles = $(profiles-di) $(profiles-script)
  14. mdfiles = content/MD5SUMS
  15. shafiles = $(patsubst %,content/SHA%SUMS,1 256 512)
  16. checksumfiles = $(mdfiles) $(shafiles)
  17. signfiles = $(patsubst %,%.sig,$(checksumfiles))
  18. info = content/NEWS content/TODO
  19. all: $(checksumfiles) $(info)
  20. sign: $(signfiles)
  21. $(mainfiles): content/%/preseed.cfg : skel/preseed.cfg.in profiles/% $(desktoptopiclists) profiles/%-z $(desktoptweaks)
  22. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  23. $(mainlcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop $(desktoptopiclists) $(desktoptopiclcgrouplists) profiles/desktop-z $(desktoptweaks)
  24. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  25. $(profiles-script): %script.sh : %preseed.cfg
  26. $(mdfiles): content/MD%SUMS: $(profiles)
  27. cd content && md$*sum $(profiles:content/%=%) > MD$*SUMS~
  28. rm -f $@.sig
  29. mv -f $@~ $@
  30. $(shafiles): content/SHA%SUMS: $(profiles)
  31. cd content && sha$*sum $(profiles:content/%=%) > SHA$*SUMS~
  32. rm -f $@.sig
  33. mv -f $@~ $@
  34. $(signfiles): %.sig: %
  35. rm -f $@
  36. gpg --detach-sign -a -o $@ $<
  37. $(info): content/% : %
  38. mkdir -p content
  39. cp -f $< $@
  40. clean:
  41. rm -f $(profiles) $(info) $(checksumfiles) $(signfiles)