summaryrefslogtreecommitdiff
path: root/Makefile
blob: e443d0820acabaeb8817b02667278700a448e609 (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. signfiles = $(patsubst %,%.sig,$(profiles))
  15. info = content/NEWS content/TODO
  16. all: $(profiles) $(info)
  17. sign: $(signfiles)
  18. $(mainfiles): content/%/preseed.cfg : skel/preseed.cfg.in profiles/% $(desktoptopiclists) profiles/%-z $(desktoptweaks)
  19. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  20. $(mainlcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop $(desktoptopiclists) $(desktoptopiclcgrouplists) profiles/desktop-z $(desktoptweaks)
  21. bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)"
  22. $(profiles-script): %script.sh : %preseed.cfg
  23. $(signfiles): %.sig: %
  24. rm -f $@
  25. gpg --detach-sign -a -o $@ $<
  26. $(info): content/% : %
  27. mkdir -p content
  28. cp -f $< $@
  29. clean:
  30. rm -f $(profiles) $(info) $(signfiles)