summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-09-12 20:46:42 +0200
committerAlbert Cervin <albert@acervin.com>2024-09-12 20:46:42 +0200
commitedfb9bf03df4555bba520f47bea8db966d4c739e (patch)
treefb1b3261ca6637a534c8ea64ef780cf3a93aeb48 /Makefile
parent405da5f84b072ea97b69359454899f45d92d24b6 (diff)
downloaddged-edfb9bf03df4555bba520f47bea8db966d4c739e.tar.gz
dged-edfb9bf03df4555bba520f47bea8db966d4c739e.tar.xz
dged-edfb9bf03df4555bba520f47bea8db966d4c739e.zip
Update the expectations on grammars
Outside the Nix setup, it will be the responsibility of something else (might be a script) to provide the treesitter grammars.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a4cec94..5630d10 100644
--- a/Makefile
+++ b/Makefile
@@ -121,12 +121,11 @@ FILES = $(DEPS) \
$(CC) $(CFLAGS) -c $< -o $@
grammars:
- @if [ -n "$$TREESITTER_GRAMMARS" ]; then \
- IFS=":"; for p in "$$TREESITTER_GRAMMARS"; do \
+ @if [ "$(SYNTAX_ENABLE)" = "true" ] && [ -n "$$BUNDLE_TREESITTER_GRAMMARS" ]; then \
+ IFS=":"; for p in "$$BUNDLE_TREESITTER_GRAMMARS"; do \
cp -rL --no-preserve=mode "$$p"/ grammars; \
done \
else \
- echo "TODO: download and build default set of grammars"; \
mkdir -p ./grammars; \
fi