saxon downloader

This commit is contained in:
Mylloon 2024-05-05 19:19:41 +02:00
parent bf4a094501
commit cd4e8866fb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -3,6 +3,8 @@ VALIDATE = xmllint --schema
SAXON = java -jar $(wildcard saxon*.jar) SAXON = java -jar $(wildcard saxon*.jar)
RM = rm RM = rm
ECHO = echo -e ECHO = echo -e
CURL = curl --location
UNZIP = unzip
SYSTEMS = l-systems SYSTEMS = l-systems
TORTUE = tortue TORTUE = tortue
@ -40,3 +42,13 @@ svg:
# Supprime les fichiers générés # Supprime les fichiers générés
clean: clean:
-$(RM) $(SYSTEMS).xml $(TORTUE).xml $(TRACEUR).xml $(EXPORT).svg -$(RM) $(SYSTEMS).xml $(TORTUE).xml $(TRACEUR).xml $(EXPORT).svg
# Télécharge Saxon
SAXON_VER = 10.9
saxon:
$(eval $version = $(subst .,-,$(SAXON_VER)))
$(eval $zipfile = saxon.zip)
$(CURL) https://github.com/Saxonica/Saxon-HE/releases/download/SaxonHE$($version)/SaxonHE$($version)J.zip \
> $($zipfile)
$(UNZIP) -j $($zipfile) saxon-he-$(SAXON_VER).jar
$(RM) $($zipfile)