diff --git a/src/Makefile b/src/Makefile --- a/src/Makefile +++ b/src/Makefile @@ -2,10 +2,15 @@ QMAKE = $(HOME)/Trolltech/Qt-4.4.1/bin/qmake -# Set $(MAKE) to the name of the make command on your machine, e.g. 'make' on Linux and 'mingw32-make' on windows. -MAKE = make # mingw32-make +# Set an environment varible $(MAKE) to the name of the make command +# on your machine, e.g. 'make' on UNIX and 'mingw32-make' on windows. +# Fallback default is UNIX make. -all: VirtualLeaf libplugin plugins +ifeq ($(MAKE),) + MAKE=make +endif + +all: VirtualLeaf libplugin plugins tutorials VirtualLeaf: Makefile.VirtualLeaf $(MAKE) -f Makefile.VirtualLeaf @@ -22,13 +27,21 @@ Makefile.libplugin: libplugin.pro plugins: $(MAKE) -C build_models +tutorials: + $(MAKE) -C build_models + $(MAKE) -C TutorialCode + clean: $(MAKE) -f Makefile.libplugin clean $(MAKE) -f Makefile.VirtualLeaf clean $(MAKE) -C build_models clean + $(MAKE) -C TutorialCode clean ifeq ($(MAKE),make) touch VirtualLeaf.pro touch libplugin.pro +else + copy /b VirtualLeaf.pro +,, + copy /b libplugin.pro +,, endif #finis