Automate flattening: convert %ksappend to %include for ksflatten compatibility
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.PHONY: help generate-recipes validate-recipes test test-integration test-container clean install-deps
|
||||
.PHONY: help generate-recipes validate-recipes test test-integration test-container clean clean-dishes install-deps flatten-dishes all
|
||||
|
||||
help:
|
||||
@echo "Phyllome OS Recipe Generator"
|
||||
@@ -9,9 +9,15 @@ help:
|
||||
@echo " test - Run pytest test suite (unit + integration)"
|
||||
@echo " test-integration - Run integration tests only"
|
||||
@echo " test-container - Run all tests in container"
|
||||
@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 flatten-dishes
|
||||
@echo "✓ All recipes generated, validated, and flattened to dishes"
|
||||
|
||||
install-deps:
|
||||
pip install -r requirements.txt
|
||||
|
||||
@@ -35,6 +41,16 @@ test-container:
|
||||
podman build -t phyllo/test-runner ../tests/container/
|
||||
podman run --rm -v .:/phyllomeos:ro phyllo/test-runner
|
||||
|
||||
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."
|
||||
@echo "Generated recipes removed. Edit recipes_manifest.yaml and run 'make generate-recipes' to regenerate. Run 'make clean-dishes' to remove flattened dishes."
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user