Skip to content

Instantly share code, notes, and snippets.

@xles
Created September 6, 2012 09:12
Show Gist options
  • Save xles/3653482 to your computer and use it in GitHub Desktop.
Save xles/3653482 to your computer and use it in GitHub Desktop.
Makefile looping?
looptest:
cd assets/images/; \
echo "Processing SVG assets"; \
for file in *.svg; do \
$(INKSCAPE) -d 300 -f $(CURDIR)/assets/images/$$file; \
-e $(CURDIR)/build/tmp/$$file.png; \
echo "processed" $$file; \
done; cd ../../build/tmp/; \
echo "Done processing SVG assets"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment