From 7776c68a73a0987575f5c4134b9a7f0eee436773 Mon Sep 17 00:00:00 2001 From: Darragh Elliott Date: Thu, 22 Aug 2024 14:16:14 +0200 Subject: [PATCH] Fix less compilation --- .gitignore | 4 ++-- Makefile | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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 # -----------------------------------------------------------------------------