Skip to content

Instantly share code, notes, and snippets.

@ralt
Created January 30, 2015 16:18
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 ralt/cd241e91428ffbc43f89 to your computer and use it in GitHub Desktop.
Save ralt/cd241e91428ffbc43f89 to your computer and use it in GitHub Desktop.
Makefile 1-1 different folders
SCSS_SOURCES := $(wildcard scss/*.scss)
CSS_OUT := $(patsubst %.scss, tmp/%.css, $(notdir $(SCSS_SOURCES)))
all: gen-css
tmp/%.css: scss/%.scss
cp $< $@
gen-css: $(CSS_OUT)
@ralt
Copy link
Author

ralt commented Jan 30, 2015

Will take scss/*.scss files and create a tmp/*.css file for each scss file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment