From c1dc844a8f09b52bb4c22960115a1640f255a213 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 30 Jul 2014 23:46:14 +0200 Subject: Major rewrite: Use reclass. --- Makefile | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e443d08..d73e964 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3