diff --git a/.gitignore b/.gitignore index c568c3ac6b..0355b3d342 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -look/fsfe.min.css -look/valentine.min.css +*/look/fsfe.min.css +*/look/valentine.min.css fsfe.org/events/????/index.??.xhtml fsfe.org/events/????/index.sources fsfe.org/events/????/index.xsl diff --git a/Makefile b/Makefile index c47c68b63a..78c862d5a6 100644 --- a/Makefile +++ b/Makefile @@ -34,10 +34,11 @@ searchindex: # distributed to the web server. ifneq ($(build_env),development) -all: look/fsfe.min.css look/valentine.min.css -look/%.min.css: $(shell find "look" -name '*.less') +websites:= pdfreaders.org drm.info fsfe.org +all: $(foreach dir,$(websites), $(dir)/look/fsfe.min.css $(dir)/look/valentine.min.css) +$(dir $@)%.min.css: $(shell find $(dir $@) -name '*.less') echo "* Compiling $@" - lessc "look/$*.less" -x "$@" + lessc "$*.less" -x "$@" endif # -----------------------------------------------------------------------------