diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/Makefile b/src/Makefile index b8892a59..6a15c5b8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -101,6 +101,7 @@ else endif version = $(shell grep -m 1 _RELEASE ../core/init.lua | cut -d ' ' -f4- | \ tr ' ' '_' | tr -d '"') +WGET = wget -O $@ # Scintilla. @@ -377,7 +378,7 @@ gtkosx_tgz = gtkosx-2.24.31.tar.gz bombay_zip = bombay.zip cloc = cloc-1.60.pl -$(scintilla_zip): ; wget http://foicica.com/hg/scintilla/archive/$@ -O $@ +$(scintilla_zip): ; $(WGET) http://foicica.com/hg/scintilla/archive/$@ scintilla: scintilla.patch | $(scintilla_zip) if [ -d $@/.hg ]; then \ hg --cwd $@ update -C LongTerm3; \ @@ -387,9 +388,9 @@ scintilla: scintilla.patch | $(scintilla_zip) fi for patch in $^; do echo Applying $$patch; patch -d $@ -N -p1 < $$patch; done ../lexers: | scintilla ; ln -s src/$|/lexlua $@ -$(lua_tgz): ; wget http://www.lua.org/ftp/$@ -$(lpeg_tgz): ; wget http://www.inf.puc-rio.br/~roberto/lpeg/$@ -$(lfs_zip): ; wget http://github.com/keplerproject/luafilesystem/archive/$@ +$(lua_tgz): ; $(WGET) http://www.lua.org/ftp/$@ +$(lpeg_tgz): ; $(WGET) http://www.inf.puc-rio.br/~roberto/lpeg/$@ +$(lfs_zip): ; $(WGET) http://github.com/keplerproject/luafilesystem/archive/$@ lua: lua.patch | $(lua_tgz) if [ -d $@ ]; then rm -rf $@; fi mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ @@ -400,23 +401,23 @@ lua/src/lib/lpeg: | $(lpeg_tgz) lua/src/lib/lfs: | $(lfs_zip) if [ -d $@ ]; then rm -r $@; fi mkdir -p $@ && unzip -d $@ $| && mv $@/*/src/*.c $@/*/src/*.h $(dir $@) -$(gtdialog_zip): ; wget $(gtdialog_url) -O $@ +$(gtdialog_zip): ; $(WGET) $(gtdialog_url) gtdialog: | $(gtdialog_zip) ; mkdir $@ && unzip -d $@ $| && mv $@/*/* $@ -$(cdk_tgz): ; wget http://invisible-mirror.net/archives/cdk/$@ +$(cdk_tgz): ; $(WGET) http://invisible-mirror.net/archives/cdk/$@ cdk: cdk.patch | $(cdk_tgz) if [ -d $@ ]; then rm -r $@; fi mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ mv $@/include/*.h $@ patch -d $@ -N -p1 < $< -$(termkey_tgz): ; wget http://www.leonerd.org.uk/code/libtermkey/$@ +$(termkey_tgz): ; $(WGET) http://www.leonerd.org.uk/code/libtermkey/$@ termkey: termkey.patch | $(termkey_tgz) if [ -d $@ ]; then rm -r $@; fi mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ && chmod +w $@/termkey.h patch -d $@ -N -p1 < $< -$(win32gtk_zip): ; wget http://foicica.com/textadept/download/$@ +$(win32gtk_zip): ; $(WGET) http://foicica.com/textadept/download/$@ win32gtk: | $(win32gtk_zip) ; unzip $| -$(win32curses_zip): ; wget http://foicica.com/textadept/download/$@ -$(pdcurses_zip): ; wget http://prdownloads.sourceforge.net/pdcurses/$@ +$(win32curses_zip): ; $(WGET) http://foicica.com/textadept/download/$@ +$(pdcurses_zip): ; $(WGET) http://prdownloads.sourceforge.net/pdcurses/$@ win32curses: | $(win32curses_zip) $(pdcurses_zip) unzip $(win32curses_zip) mkdir $@/src && unzip -d $@/src $(pdcurses_zip) @@ -424,13 +425,13 @@ win32curses: | $(win32curses_zip) $(pdcurses_zip) cd $@/src/wincon && $(MAKE) CC="$(CROSS)$(CC) $(CFLAGS)" LIBEXE=$(CROSS)ar \ LINK="$(CROSS)$(CC) $(CFLAGS)" WIDE=Y UTF8=Y libs cp $@/src/wincon/pdcurses.a $@/lib/ -$(gtkosx_tgz): ; wget http://foicica.com/textadept/download/$@ +$(gtkosx_tgz): ; $(WGET) http://foicica.com/textadept/download/$@ gtkosx: | $(gtkosx_tgz) ; mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ -$(bombay_zip): ; wget http://foicica.com/hg/bombay/archive/tip.zip -O $@ +$(bombay_zip): ; $(WGET) http://foicica.com/hg/bombay/archive/tip.zip ../doc/bombay: | $(bombay_zip) mkdir $(notdir $@) && unzip -d $(notdir $@) $| && \ mv $(notdir $@)/*/* $(dir $@) -$(cloc): ; wget http://prdownloads.sourceforge.net/cloc/$@ -O $@ +$(cloc): ; $(WGET) http://prdownloads.sourceforge.net/cloc/$@ sign-deps: | $(scintilla_tgz) $(lua_tgz) $(lpeg_tgz) $(lfs_zip) \ $(gtdialog_zip) $(cdk_tgz) $(termkey_tgz) $(win32gtk_zip) \ $(win32curses_zip) $(pdcurses_zip) $(gtkosx_tgz) |