diff --git a/Makefile b/Makefile index b1de3d2445b23780aa28548ff294971b2ebf6e5a..a07a3299b171002e32f3602bf475ac953d700695 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,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