topics = desktop localegroups = all eu profiles = $(foreach topic,$(topics),\ content/$(topic)) profiles += $(foreach topic,$(topics),$(foreach group,$(localegroups),\ content/$(topic)/$(group))) signfiles = $(patsubst %,%.sig,$(profiles)) info = content/NEWS content/TODO all: $(profiles) $(info) sign: $(signfiles) $(profiles): bin/pkglist2preseed $(patsubst content-%,parl-%,$(subst /,-,$@)) $@ $(signfiles): %.sig: % rm -f $@ gpg --detach-sign -a -o $@ $< $(info): content/% : % mkdir -p content cp -f $< $@ clean: rm -f $(profiles:=/preseed.cfg) $(profiles:=/script.sh) rm -f $(info) $(signfiles) find content -empty -delete