diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-03-02 21:06:00 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-03-02 21:06:00 +0100 |
commit | 91baeb0561c44cbdcf774220d1b40291c4be8045 (patch) | |
tree | 47955b98198a43df9e139bca77a6dcf07b2fc496 /Makefile | |
parent | 32b956ecd785a95d51bc47df6a549b77e707f4e5 (diff) |
Restructure to generate preseed files from skeleton + packagelists.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
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 $^ > $@ |