From 91baeb0561c44cbdcf774220d1b40291c4be8045 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 2 Mar 2014 21:06:00 +0100 Subject: Restructure to generate preseed files from skeleton + packagelists. --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c4a178c --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +profiles = desktop +desktoptopics = email office web +desktoptopiclists = $(patsubst %,profiles/desktop-%,$(desktoptopics)) +basefiles = $(patsubst %,content/%/base/preseed.cfg,$(profiles)) +topicfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(desktoptopics)) +profilefiles = $(patsubst %,content/%/preseed.cfg,$(profiles)) + +all: $(basefiles) $(topicfiles) $(profilefiles) + +$(basefiles): content/%/base/preseed.cfg : profiles/% profiles/%-z + bin/pkglist2preseed skel/preseed.cfg.in $^ > $@ + +$(topicfiles): content/desktop/%/preseed.cfg : profiles/desktop profiles/desktop-% profiles/desktop-z + bin/pkglist2preseed skel/preseed.cfg.in $^ > $@ + +$(profilefiles): content/%/preseed.cfg : profiles/% profiles/%-email $(desktoptopiclists) profiles/%-z + bin/pkglist2preseed skel/preseed.cfg.in $^ > $@ -- cgit v1.2.3