Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormadmonkey <madfkingmonkey@gmail.com>2017-02-01 05:49:28 +0300
committermadmonkey <madfkingmonkey@gmail.com>2017-02-01 05:49:28 +0300
commitcf9488f10b35be8e461ae92c5bfc3f757680f739 (patch)
tree29998bd8888e1ac9a4d696694448fd8998da42b0 /Makefile
parent669a8ee56ba6d66a90126756cd84f52ae0a5bc83 (diff)
fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bbf4f37..0e79d67 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@