summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-03-02 21:06:00 +0100
committerJonas Smedegaard <dr@jones.dk>2014-03-02 21:06:00 +0100
commit91baeb0561c44cbdcf774220d1b40291c4be8045 (patch)
tree47955b98198a43df9e139bca77a6dcf07b2fc496 /Makefile
parent32b956ecd785a95d51bc47df6a549b77e707f4e5 (diff)
Restructure to generate preseed files from skeleton + packagelists.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
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 $^ > $@