diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 11 insertions, 21 deletions
@@ -1,29 +1,17 @@ -maintopics = desktop -desktoptopics = email media mobile office scheduling web -lcdesktoptopics = email office web -lcgroups = all eu -desktoptopiclists = $(patsubst %,profiles/desktop-%,$(desktoptopics)) -desktoptopiclcgrouplists = $(foreach topic,$(lcdesktoptopics),\ - profiles/desktop-$(topic)-%) -desktoptweaks = tweaks/base tweaks/desktop -mainfiles = $(patsubst %,content/%/preseed.cfg,$(maintopics)) -mainlcgroupfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(lcgroups)) -profiles-di = $(mainfiles) $(mainlcgroupfiles) -profiles-script = $(patsubst %/preseed.cfg,%/script.sh,$(profiles-di)) -profiles = $(profiles-di) $(profiles-script) +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) -$(mainfiles): content/%/preseed.cfg : skel/preseed.cfg.in profiles/% $(desktoptopiclists) profiles/%-z $(desktoptweaks) - bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)" - -$(mainlcgroupfiles): content/desktop/%/preseed.cfg : skel/preseed.cfg.in profiles/desktop $(desktoptopiclists) $(desktoptopiclcgrouplists) profiles/desktop-z $(desktoptweaks) - bin/pkglist2preseed $(filter skel/%,$^) $@ "$(filter profiles/%,$^)" "$(filter tweaks/%,$^)" - -$(profiles-script): %script.sh : %preseed.cfg +$(profiles): + bin/pkglist2preseed $(patsubst content-%,parl-%,$(subst /,-,$@)) $@ $(signfiles): %.sig: % rm -f $@ @@ -34,4 +22,6 @@ $(info): content/% : % cp -f $< $@ clean: - rm -f $(profiles) $(info) $(signfiles) + rm -f $(profiles:=/preseed.cfg) $(profiles:=/script.sh) + rm -f $(info) $(signfiles) + find content -empty -delete |