diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-07-30 23:46:14 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-07-30 23:46:14 +0200 |
commit | c1dc844a8f09b52bb4c22960115a1640f255a213 (patch) | |
tree | c36855d0d890515b1c6b01b0c73237269d149e93 /Makefile | |
parent | bf22f5b0a420a961d032a0529079b8ca092788b7 (diff) |
Major rewrite: Use reclass.
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 |