Created
January 12, 2012 04:56
-
-
Save tj/1598850 to your computer and use it in GitHub Desktop.
Stylus web service makefile example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STYLES = $(wildcard stylesheets/*.styl) | |
CSS = $(STYLES:.styl=.css) | |
COMPRESSED = $(CSS:.css=.min.css) | |
all: $(CSS) | |
style.min.css: $(COMPRESSED) | |
@cat $^ > $@ | |
%.css: %.styl | |
@echo ... $< | |
@curl -s -F style=@$< http://styl.herokuapp.com > $@ | |
%.min.css: %.styl | |
@echo ... $< | |
@curl -s -F style=@$< http://styl.herokuapp.com?compress > $@ | |
clean: | |
rm -f $(CSS) | |
rm -f $(COMPRESSED) | |
.PHONY: clean |
Author
tj
commented
Jan 12, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment