diff --git a/Makefile b/Makefile index 3d50d3f173..efa997878c 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,10 @@ export LDCONFIG export LDCONFIG_FLAGS export PYTHON --include makeopts +# makeopts is required unless the goal is clean or distclean +ifeq ($(findstring clean,$(MAKECMDGOALS)),) +include makeopts +endif # start the primary CFLAGS and LDFLAGS with any that were provided # to the configure script