summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-06 13:24:57 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-06 13:24:57 +0200
commit559d5aba6f02a0b8fa69afdffd85e918526860ee (patch)
treebb8bce3c960f2ea05d6604bcb3e5265a6e667185
parent09defec0a015e7ddb118bd453ea2925a5cb9d5dc (diff)
Handle lightningcss not existing
-rw-r--r--GNUmakefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index e3aa32b..3142cd5 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -19,7 +19,12 @@ exttmpl: $(exttmpl)
go build ./cmd/exttmpl
%.min.css: %.css
- lightningcss -m $< -o $@
+ if command -v lightningcss >/dev/null; \
+ then \
+ lightningcss -m $< -o $@; \
+ else \
+ cp $< $@; \
+ fi
clean:
find . -type f \( \
@@ -29,4 +34,4 @@ clean:
-or -name '*.tar.gz' \
\) -delete
-.PHONY: all-i18n clean release
+.PHONY: all-i18n clean release \ No newline at end of file