13 .PHONY: $(DIRS) clean all
15 all: Makefile.inc $(DIRS)
18 $(ECHO_CMD)-rm -rf release
21 @if $(MAKE) -C $@ $(MAKECMDGOALS); then \
22 echo -e "\n===== Make of $@ succeeded =====\n\n" ; \
24 echo -e "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
27 Makefile.inc: Makefile.inc.in
29 $(ECHO_CMD)TOPDIR=`(cd ../../..;pwd)`; \
30 if test -e ../../../cross-tools/mingw32/bin/mingw32-gcc; then \
31 BINDIR=$${TOPDIR}/cross-tools/mingw32/bin; \
32 INCDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/include; \
33 elif test -e /mingw/bin/mingw32-gcc; then \
35 INCDIR=/mingw/include; \
37 echo -e "\nThe GCC cross compiler isn't installed."; \
38 echo -e "You must run build-win32-cross-tools and build-dependencies first.\n"; \
41 sed -e "s^@TOPDIR@^$${TOPDIR}^" \
42 -e "s^@BINDIR@^$${BINDIR}^" \
43 -e "s^@INCDIR@^$${INCDIR}^" < Makefile.inc.in > $@