.PHONY: readme icon

readme:
	python3 generate-readme.py

icon:
	@command -v magick >/dev/null 2>&1 || { echo "❌ ImageMagick nicht installiert. brew install imagemagick"; exit 1; }
	magick -size 192x192 xc:'#EC0016' \
		-fill white -draw "translate 96,100 scale 1,1 polygon 0,-70 16,-22 68,-22 26,8 42,56 0,28 -42,56 -26,8 -68,-22 -16,-22" \
		\( +clone -alpha extract -draw 'fill black rectangle 0,0 192,192 fill white roundrectangle 0,0 192,192 30,30' \) \
		-alpha off -compose CopyOpacity -composite \
		icon.png
	@echo "✅ icon.png erstellt (192x192)"
