-MINGMAKEARGS := "LIBGL := -lopengl32 -lglu32" \
- "LIBSDL := `/usr/mingw32/bin/sdl-config --libs`" \
- "LIBSCPY := $(addprefix bin-mingw32/,SDL.dll)" \
- "CXXFLAGS := ${OPTFLAGS}" \
- "CXX := mingw32-g++" \
- "OBJSDIR := objs-mingw32/" \
- "WORKINGDIR := bin-mingw32/" \
- "TARGETNAME := run_physics.exe"
-
-.PHONY: mingw32
-mingw32:
- ${Q1}${PRNTFMT} "make" "mingw32"
- ${Q2}${MAKE} ${MINGMAKEARGS} cleanbin cleanobjs
- ${Q2}${MAKE} ${MINGMAKEARGS} all
-
-FINALMAKEARGS := "CXXFLAGS := ${OPTFLAGS}" \
- "OBJSDIR := objs/" \
- "WORKINGDIR := bin/"
-
-.PHONY: final
-final:
- ${Q1}${PRNTFMT} "make" "final"
- ${Q2}${MAKE} ${FINALMAKEARGS} cleanbin cleanobjs
- ${Q2}${MAKE} ${FINALMAKEARGS} all
-
-
--include ${DEPS}
+# Do not include deps files when doing a _single_ clean operation
+ifeq ($(findstring ${MAKECMDGOALS},${CLEANCMDS}),)
+ -include ${DEPS}
+endif