Fix less compilation

This commit is contained in:
delliott 2024-08-22 14:16:14 +02:00
parent f8eaa6096b
commit 7776c68a73
Signed by: delliott
SSH Key Fingerprint: SHA256:h5IC6Ec/o6ypmpM7ZdRqULGyG8dz4Jr5K192BAWAjoo
2 changed files with 6 additions and 5 deletions

4
.gitignore vendored
View File

@ -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

View File

@ -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
# -----------------------------------------------------------------------------