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