Created
January 31, 2014 20:02
-
-
Save vaceletm/8741840 to your computer and use it in GitHub Desktop.
Rebuild only css files correponding to a changed less file
This file contains hidden or 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
css_files := $(shell find . -name '*.css' -type f -print) | |
less_files := $(patsubst %.css,%.less,$(css_files)) | |
show_less: | |
@echo $(less_files) | |
less: $(less_files) | |
$(less_files): %.less: %.css | |
@echo "Building $@" | |
@touch $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment