summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-03-07 12:19:12 +0100
committerJonas Smedegaard <dr@jones.dk>2014-03-07 12:19:12 +0100
commit2ef7c8a26dceddbf37d9bab510c86118adb235e9 (patch)
tree11cf03b53ab1b14cf9ab0cd0935e1632038441ab
parentf06cdadb725ff1c591da55c0675ef9ef49a80dbf (diff)
Make per-lcgroup profiles (eu and all for now.
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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