summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-04-20 16:45:45 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-12 23:42:45 +0200
commitbcbf0a2046adf636eb3ceca6337b8ab4b8a38f1f (patch)
treebedf6964251f0aff9939a8a3cd13aab042187252
parentd25948a3d94213ca10236f403a055bf96ed2c0e3 (diff)
Force CSS file rebuild when make is forced with -B option.
-rw-r--r--include.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include.mk b/include.mk
index 48d2778..783a904 100644
--- a/include.mk
+++ b/include.mk
@@ -1,8 +1,10 @@
+always-make = $(filter -B,$(MAKEFLAGS))
+
cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file)))
cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1))
$(cssprojects):
- sass --update --stop-on-error $(if $(beautify),--style expanded) $@
+ sass --update --stop-on-error$(if $(beautify), --style expanded)$(if $(always-make), --force) $@
$(if $(beautify),perl -i -pe 's/ /\t/g' $(call cssprojectoutfiles,$@))
clean::