diff options
author | madmonkey <madfkingmonkey@gmail.com> | 2017-02-01 05:49:28 +0300 |
---|---|---|
committer | madmonkey <madfkingmonkey@gmail.com> | 2017-02-01 05:49:28 +0300 |
commit | cf9488f10b35be8e461ae92c5bfc3f757680f739 (patch) | |
tree | 29998bd8888e1ac9a4d696694448fd8998da42b0 /Makefile | |
parent | 669a8ee56ba6d66a90126756cd84f52ae0a5bc83 (diff) |
fixes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -6,7 +6,7 @@ build/hakchi-gui: build/macdylibbundler endif endif -.PHONY: all clean patch unpatch +.PHONY: all clean patch unpatch submodule clean: unpatch @cd bin && rm -rf sunxi-fel mkbootimg unpackbootimg sntool @@ -20,6 +20,9 @@ patch: unpatch: @cd 3rdparty/sunxi-tools && git checkout . +submodule: + @git submodule update --init + bin/sunxi-fel: 3rdparty/sunxi-tools/sunxi-fel @cp $< $@ @@ -39,7 +42,7 @@ bin/unpackbootimg: 3rdparty/mkbootimg/unpackbootimg @$(MAKE) -C $(<D) mod/bin/busybox: 3rdparty/busybox.url - @if [ ! -x $@ ]; then wget --no-use-server-timestamps $(shell cat $<) -O $@ && upx -qq --best $@ && chmod +x $@; else touch $@; fi + @if [ ! -x $@ ]; then mkdir -p $(@D); if wget --no-use-server-timestamps $(shell cat $<) -O $@; then chmod +x $@ && upx -qq --best $@; else rm -rf $@; fi; else touch $@; fi build/hakchi-gui: build/Makefile hakchi-gui/src/* patch @$(MAKE) -C build @@ -56,4 +59,4 @@ build/macdylibbundler: 3rdparty/macdylibbundler/* @$(MAKE) -C $(<D) bin/sntool: sntool/sntool.cpp - @g++ -I3rdparty/sunxi-tools -std=gnu++11 -Wall -Wextra $< -o $@ + @$(CROSS_COMPILE)g++ -I3rdparty/sunxi-tools -std=gnu++11 -Wall -Wextra $< -o $@ |