Skip to content

Instantly share code, notes, and snippets.

@vaceletm
Created January 31, 2014 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaceletm/8741840 to your computer and use it in GitHub Desktop.
Save vaceletm/8741840 to your computer and use it in GitHub Desktop.
Rebuild only css files correponding to a changed less file
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