- Move storage options from 'modifiers' to 'required' in recipe_templates.yaml
- Changed required.storage from {'ext4': storage/standard.ks} to {'standard': ..., 'encrypted': ...}
- Removed storage from modifiers section
- This ensures storage: encrypted recipes include only storage/encrypted.ks
- Updated generated recipes and dishes to reflect the fix
42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
.PHONY: help generate-recipes validate-recipes clean clean-dishes install-deps flatten-dishes all
|
|
|
|
help:
|
|
@echo "Phyllome OS Recipe Generator"
|
|
@echo ""
|
|
@echo "Available targets:"
|
|
@echo " generate-recipes - Generate all recipes from manifest"
|
|
@echo " validate-recipes - Validate existing recipes"
|
|
@echo " all - Generate, validate, and flatten all recipes (default)"
|
|
@echo " flatten-dishes - Flatten all recipes to dishes"
|
|
@echo " clean-dishes - Remove flattened dishes"
|
|
@echo " clean - Remove generated recipes"
|
|
@echo " install-deps - Install Python dependencies"
|
|
|
|
all: generate-recipes validate-recipes clean-dishes flatten-dishes
|
|
@echo "✓ All recipes generated, validated, and flattened to dishes"
|
|
|
|
install-deps:
|
|
pip install -r requirements.txt
|
|
|
|
generate-recipes:
|
|
rm -f recipes/*.cfg
|
|
python3 generate_recipe.py \
|
|
--manifest recipes_manifest.yaml \
|
|
--output-dir recipes/
|
|
|
|
validate-recipes:
|
|
python3 generate_recipe.py \
|
|
--validate recipes/*.cfg
|
|
|
|
flatten-dishes:
|
|
@echo "Flattening recipes to dishes..."
|
|
@python bin/ksflatten-relative recipes dishes
|
|
|
|
clean-dishes:
|
|
rm -f dishes/*.cfg
|
|
@echo "✓ Flattened dishes removed. Run 'make flatten-dishes' to regenerate."
|
|
|
|
clean:
|
|
rm -f recipes/*.cfg
|
|
@echo "Generated recipes removed. Edit recipes_manifest.yaml and run 'make generate-recipes' to regenerate. Run 'make clean-dishes' to remove flattened dishes."
|