Created
January 30, 2015 16:18
-
-
Save ralt/cd241e91428ffbc43f89 to your computer and use it in GitHub Desktop.
Makefile 1-1 different folders
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
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will take
scss/*.scss
files and create atmp/*.css
file for each scss file.