Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Parameterize wget.
Browse files Browse the repository at this point in the history
Some environments provide Curl instead.
  • Loading branch information
orbitalquark committed Jul 4, 2022
1 parent d7acf5e commit 2b9473a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ LDFLAGS = -Wl,--retain-symbols-file -Wl,$(ta_src)/lua.sym
libyaml_flags = -Ilibyaml -DYAML_VERSION_MAJOR=0 -DYAML_VERSION_MINOR=2 -DYAML_VERSION_PATCH=5 \
-D'YAML_VERSION_STRING="0.2.5"'
lyaml_flags = -Ilibyaml -D'VERSION="0.2.5"' -Ilyaml
WGET = wget -O $@

all: yaml.so yaml.dll yamlosx.so
clean: ; rm -f *.o *.so *.dll
Expand Down Expand Up @@ -65,10 +66,10 @@ luadoc: init.lua
deps: libyaml lyaml

libyaml_zip = 0.2.5.zip
$(libyaml_zip): ; wget https://github.com/yaml/libyaml/archive/$@
$(libyaml_zip): ; $(WGET) https://github.com/yaml/libyaml/archive/$@
libyaml: | $(libyaml_zip) ; unzip -d $@ -j $| "*/src/*" "*/include/*.h"
lyaml_zip = v6.2.6.zip
$(lyaml_zip): ; wget https://github.com/gvvaughan/lyaml/archive/$@
$(lyaml_zip): ; $(WGET) https://github.com/gvvaughan/lyaml/archive/$@
lyaml: | $(lyaml_zip) ;
unzip -d $@ -j $| "*/ext/yaml/*" "*/lib/$@/*"
sed -i "s/require 'lyaml/require 'yaml.lyaml/;" $@/*.lua
Expand Down

2 comments on commit 2b9473a

@paaguti
Copy link

@paaguti paaguti commented on 2b9473a Jul 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool... something like this would also be needed in textadept-file-diff ;-)

@orbitalquark
Copy link
Owner Author

@orbitalquark orbitalquark commented on 2b9473a Jul 5, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.