separate targets

This commit is contained in:
Joey Hess 2013-02-24 13:52:12 -04:00
parent ac0292df95
commit 7711ce5b13

View file

@ -65,6 +65,15 @@ build: source build-utils start
cd source/term && ant debug cd source/term && ant debug
build-utils: source build-utils: source
$(MAKE) build-openssh
$(MAKE) build-busybox
$(MAKE) build-rsync
$(MAKE) build-gnupg
$(MAKE) build-git
$(MAKE) build-term
touch build-utils
build-openssh:
cd source/openssl && CC=$$(which cc) ./Configure android cd source/openssl && CC=$$(which cc) ./Configure android
cd source/openssl && $(MAKE) cd source/openssl && $(MAKE)
@ -76,22 +85,27 @@ build-utils: source
cd source/openssh && sed -i -e 's/auth-passwd.o //' Makefile cd source/openssh && sed -i -e 's/auth-passwd.o //' Makefile
cd source/openssh && $(MAKE) ssh ssh-keygen cd source/openssh && $(MAKE) ssh ssh-keygen
build-busybox:
cp busybox_config source/busybox/.config cp busybox_config source/busybox/.config
cd source/busybox && yes '' | $(MAKE) oldconfig cd source/busybox && yes '' | $(MAKE) oldconfig
cd source/busybox && $(MAKE) cd source/busybox && $(MAKE)
build-git:
cd source/git && $(MAKE) install NO_OPENSSL=1 NO_GETTEXT=1 NO_GECOS_IN_PWENT=1 NO_GETPASS=1 NO_NSEC=1 NO_MKDTEMP=1 NO_PTHREADS=1 NO_PERL=1 NO_CURL=1 NO_EXPAT=1 NO_TCLTK=1 NO_ICONV=1 prefix= DESTDIR=installed-tree cd source/git && $(MAKE) install NO_OPENSSL=1 NO_GETTEXT=1 NO_GECOS_IN_PWENT=1 NO_GETPASS=1 NO_NSEC=1 NO_MKDTEMP=1 NO_PTHREADS=1 NO_PERL=1 NO_CURL=1 NO_EXPAT=1 NO_TCLTK=1 NO_ICONV=1 prefix= DESTDIR=installed-tree
build-rsync:
cd source/rsync && git reset --hard origin/master && git am < ../../rsync.patch cd source/rsync && git reset --hard origin/master && git am < ../../rsync.patch
cp source/automake/lib/config.sub source/automake/lib/config.guess source/rsync/ cp source/automake/lib/config.sub source/automake/lib/config.guess source/rsync/
cd source/rsync && ./configure --host=arm-linux-androideabi --disable-locale --disable-iconv-open --disable-iconv --disable-acl-support --disable-xattr-support cd source/rsync && ./configure --host=arm-linux-androideabi --disable-locale --disable-iconv-open --disable-iconv --disable-acl-support --disable-xattr-support
cd source/rsync && $(MAKE) cd source/rsync && $(MAKE)
build-gnupg:
cd source/gnupg && git checkout gnupg-1.4.13 cd source/gnupg && git checkout gnupg-1.4.13
cd source/gnupg && ./autogen.sh cd source/gnupg && ./autogen.sh
cd source/gnupg && ./configure --host=arm-linux-androideabi --disable-gnupg-iconv --enable-minimal --disable-card-support --disable-agent-support --disable-photo-viewers --disable-keyserver-helpers --disable-nls cd source/gnupg && ./configure --host=arm-linux-androideabi --disable-gnupg-iconv --enable-minimal --disable-card-support --disable-agent-support --disable-photo-viewers --disable-keyserver-helpers --disable-nls
cd source/gnupg; $(MAKE) || true # expected failure in doc build cd source/gnupg; $(MAKE) || true # expected failure in doc build
build-term:
cd source/term && git reset --hard cd source/term && git reset --hard
cd source/term && patch -p1 <../../term.patch cd source/term && patch -p1 <../../term.patch
(cd icons && tar c .) | (cd source/term/res && tar x) (cd icons && tar c .) | (cd source/term/res && tar x)
@ -104,8 +118,6 @@ build-utils: source
cd source/term && perl -pi -e 's/Terminal Emulator/Git Annex/g' res/*/strings.xml cd source/term && perl -pi -e 's/Terminal Emulator/Git Annex/g' res/*/strings.xml
cd source/term && tools/update.sh cd source/term && tools/update.sh
touch build-utils
source: source:
mkdir -p source mkdir -p source
git clone git://git.savannah.gnu.org/automake.git source/automake git clone git://git.savannah.gnu.org/automake.git source/automake