11PRE_RULE = (echo "=== Building $@ ==="; ls -ld $@ ; true) && ls -ld $+
22POST_RULE = ls -ld $@
33
4- $(BUILDDIR ) /tox4j/Makefile : $(CURDIR ) /cpp/CMakeLists.txt $(TOOLCHAIN_FILE ) $(foreach i,protobuf toxcore,$(TOOLCHAIN ) /$i.stamp)
4+ $(BUILDDIR ) /tox4j/Makefile : $(CURDIR ) /cpp/CMakeLists.txt $(TOOLCHAIN_FILE ) $(foreach i,protobuf toxcore,$(PREFIX ) /$i.stamp)
55 @$(PRE_RULE )
66 mkdir -p $(@D )
77 cd $(@D ) && cmake $(<D ) $($(notdir $(@D ) ) _CONFIGURE)
88 @$(POST_RULE )
99
10- $(TOOLCHAIN ) /tox4j.stamp : $(BUILDDIR ) /tox4j/Makefile
10+ $(PREFIX ) /tox4j.stamp : $(BUILDDIR ) /tox4j/Makefile
1111 @$(PRE_RULE )
1212 $(MAKE ) -C $(<D ) install
1313 mkdir -p $(@D ) && touch $@
@@ -19,7 +19,7 @@ $(TOOLCHAIN)/tox4j.stamp: $(BUILDDIR)/tox4j/Makefile
1919$(SRCDIR ) /protobuf :
2020 git clone --depth=1 --branch=v3.11.1 https://github.com/google/protobuf $@
2121
22- $(TOOLCHAIN ) /protobuf.stamp : $(SRCDIR ) /protobuf $(TOOLCHAIN_FILE ) $(PROTOC )
22+ $(PREFIX ) /protobuf.stamp : $(SRCDIR ) /protobuf $(TOOLCHAIN_FILE ) $(PROTOC )
2323 @$(PRE_RULE )
2424 cd $< && autoreconf -fi
2525 mkdir -p $(BUILDDIR ) /$(notdir $< )
@@ -38,8 +38,8 @@ $(SRCDIR)/toxcore:
3838 git clone --depth=1 https://github.com/TokTok/c-toxcore $@ ; \
3939 fi
4040
41- $(TOOLCHAIN ) /toxcore.stamp : $(foreach f,$(shell cd $(SRCDIR ) /toxcore && git ls-files) ,$(SRCDIR ) /toxcore/$f)
42- $(TOOLCHAIN ) /toxcore.stamp : $(SRCDIR ) /toxcore $(TOOLCHAIN_FILE ) $(foreach i,libsodium opus libvpx,$(TOOLCHAIN ) /$i.stamp)
41+ $(PREFIX ) /toxcore.stamp : $(foreach f,$(shell cd $(SRCDIR ) /toxcore && git ls-files) ,$(SRCDIR ) /toxcore/$f)
42+ $(PREFIX ) /toxcore.stamp : $(SRCDIR ) /toxcore $(TOOLCHAIN_FILE ) $(foreach i,libsodium opus libvpx,$(PREFIX ) /$i.stamp)
4343 @$(PRE_RULE )
4444 mkdir -p $(BUILDDIR ) /$(notdir $< )
4545 cd $(BUILDDIR ) /$(notdir $< ) && cmake $(SRCDIR ) /$(notdir $< ) $($(notdir $< ) _CONFIGURE) -DMUST_BUILD_TOXAV=ON -DBOOTSTRAP_DAEMON=OFF
@@ -53,7 +53,7 @@ $(TOOLCHAIN)/toxcore.stamp: $(SRCDIR)/toxcore $(TOOLCHAIN_FILE) $(foreach i,libs
5353$(SRCDIR ) /libsodium :
5454 git clone --depth=1 --branch=1.0.18 https://github.com/jedisct1/libsodium $@
5555
56- $(TOOLCHAIN ) /libsodium.stamp : $(SRCDIR ) /libsodium $(TOOLCHAIN_FILE )
56+ $(PREFIX ) /libsodium.stamp : $(SRCDIR ) /libsodium $(TOOLCHAIN_FILE )
5757 @$(PRE_RULE )
5858 cd $< && autoreconf -fi
5959 mkdir -p $(BUILDDIR ) /$(notdir $< )
@@ -68,7 +68,7 @@ $(TOOLCHAIN)/libsodium.stamp: $(SRCDIR)/libsodium $(TOOLCHAIN_FILE)
6868$(SRCDIR ) /opus :
6969 git clone --depth=1 https://github.com/xiph/opus $@
7070
71- $(TOOLCHAIN ) /opus.stamp : $(SRCDIR ) /opus $(TOOLCHAIN_FILE )
71+ $(PREFIX ) /opus.stamp : $(SRCDIR ) /opus $(TOOLCHAIN_FILE )
7272 @$(PRE_RULE )
7373 cd $< && autoreconf -fi
7474 mkdir -p $(BUILDDIR ) /$(notdir $< )
@@ -84,11 +84,9 @@ $(SRCDIR)/libvpx:
8484 git clone --depth=1 --branch=v1.6.0 https://github.com/webmproject/libvpx $@
8585 cd $@ && patch -p1 < $(CURDIR ) /scripts/patches/libvpx.patch
8686
87- $(TOOLCHAIN ) /libvpx.stamp : $(SRCDIR ) /libvpx $(TOOLCHAIN_FILE )
87+ $(PREFIX ) /libvpx.stamp : $(SRCDIR ) /libvpx $(TOOLCHAIN_FILE )
8888 @$(PRE_RULE )
8989 echo $(PATH )
90- mkdir -p $(TOOLCHAIN ) /bin
91- ln -f $(CC ) $(TOOLCHAIN ) /bin/aarch64-linux-android-gcc
9290 mkdir -p $(BUILDDIR ) /$(notdir $< )
9391 cd $(BUILDDIR ) /$(notdir $< ) && $(SRCDIR ) /$(notdir $< ) /configure $($(notdir $< ) _CONFIGURE)
9492 $(MAKE ) -C $(BUILDDIR ) /$(notdir $< ) install
0 commit comments