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