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: symlinkfarm $(profiles) $(info) sign: $(signfiles) symlinkfarm: shtool mkshadow profiles/wheezy profiles/jessie 2>/dev/null $(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 profiles -type l -delete find profiles $(wildcard content) -empty -delete