summaryrefslogtreecommitdiff
path: root/Makefile
blob: 37bc5347e1469325ec18fb2656bb2f8da24d8f1c (plain)
  1. topics = desktop
  2. localegroups = all eu
  3. profiles = $(foreach topic,$(topics),\
  4. content/$(topic))
  5. profiles += $(foreach topic,$(topics),$(foreach group,$(localegroups),\
  6. content/$(topic)/$(group)))
  7. signfiles = $(patsubst %,%.sig,$(profiles))
  8. info = content/NEWS content/TODO
  9. all: symlinkfarm $(profiles) $(info)
  10. sign: $(signfiles)
  11. symlinkfarm:
  12. shtool mkshadow profiles/wheezy profiles/jessie 2>/dev/null
  13. $(profiles):
  14. bin/pkglist2preseed $(patsubst content-%,parl-%,$(subst /,-,$@)) $@
  15. $(signfiles): %.sig: %
  16. rm -f $@
  17. gpg --detach-sign -a -o $@ $<
  18. $(info): content/% : %
  19. mkdir -p content
  20. cp -f $< $@
  21. clean:
  22. rm -f $(profiles:=/preseed.cfg) $(profiles:=/script.sh)
  23. rm -f $(info) $(signfiles)
  24. find profiles -type l -delete
  25. find profiles $(wildcard content) -empty -delete