From addd439c84b9d1363a1678e7a1b25a310e753abf Mon Sep 17 00:00:00 2001 From: DanTheMan827 <790119+DanTheMan827@users.noreply.github.com> Date: Wed, 20 Dec 2017 03:23:11 -0600 Subject: [PATCH] Update Makefile --- Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 37f1f73..4f605e7 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,27 @@ -all: dropbear.hmod -dropbear.hmod: mod/bin/dropbear - chmod +x mod/bin/dropbear - tar -czvf dropbear.hmod -C mod bin etc +all: out/dropbear.hmod +out/dropbear.hmod: mod/bin/dropbear + [ -f "out/dropbear.hmod" ] || tar -czvf out/dropbear.hmod -C mod bin etc + mod/bin/dropbear: src/dropbear-2015.68/dropbear - -mkdir -p mod/bin + mkdir -p mod/bin [ -f mod/bin/dropbear ] || upx --ultra-brute src/dropbear-2015.68/dropbear -o mod/bin/dropbear + chmod +x mod/bin/dropbear + src/dropbear-2015.68.tar.bz2: - mkdir src + mkdir -p src wget https://github.com/DanTheMan827/dropbear.hmod/releases/download/tarballs/dropbear-2015.68.tar.bz2 -O src/dropbear-2015.68.tar.bz2 + src/dropbear-2015.68/configure: src/dropbear-2015.68.tar.bz2 [ -f src/dropbear-2015.68/configure ] || tar -xjvf src/dropbear-2015.68.tar.bz2 -C src/ + src/dropbear-2015.68/Makefile: src/dropbear-2015.68/configure cd src/dropbear-2015.68; \ ./configure --host=arm-linux-gnueabihf --prefix=/ --disable-zlib CC=arm-linux-gnueabihf-gcc LD=arm-linux-gnueabihf-ld + src/dropbear-2015.68/dropbear: src/dropbear-2015.68/Makefile make -C src/dropbear-2015.68 + clean: - -rm dropbear.hmod - -rm mod/bin/dropbear - -rm -rf src + -rm -rf "out/" "mod/bin/dropbear" "src/" + .PHONY: all clean