From 2ef7c8a26dceddbf37d9bab510c86118adb235e9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 7 Mar 2014 12:19:12 +0100 Subject: Make per-lcgroup profiles (eu and all for now. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c15f40b..7c23365 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,16 @@ profiles = desktop desktoptopics = email office web lcgroups = all eu desktoptopiclists = $(patsubst %,profiles/desktop-%,$(desktoptopics)) +desktoptopiclcgrouplists = $(foreach topic,$(desktoptopics),\ + profiles/desktop-$(topic)-%) desktoptweaks = tweaks/base tweaks/desktop basefiles = $(patsubst %,content/%/base/preseed.cfg,$(profiles)) topicfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(desktoptopics)) lcgroupfiles = $(foreach lcgroup,$(lcgroups),\ $(patsubst %,content/desktop/%-$(lcgroup)/preseed.cfg,$(desktoptopics))) mainfiles = $(patsubst %,content/%/preseed.cfg,$(profiles)) -allfiles = $(basefiles) $(topicfiles) $(lcgroupfiles) $(mainfiles) +mainlcgroupfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(lcgroups)) +allfiles = $(basefiles) $(topicfiles) $(lcgroupfiles) $(mainfiles) $(mainlcgroupfiles) mdfiles = content/MD5SUMS shafiles = $(patsubst %,content/SHA%SUMS,1 256 512) checksumfiles = $(mdfiles) $(shafiles) @@ -34,6 +37,9 @@ $(mdfiles): content/MD%SUMS: $(allfiles) rm -f $@.sign mv -f $@~ $@ +$(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/%,$^)" + $(shafiles): content/SHA%SUMS: $(allfiles) cd content && sha$*sum $(allfiles:content/%=%) > SHA$*SUMS~ rm -f $@.sign -- cgit v1.2.3