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