summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1733d67..400f2e5 100644
--- a/Makefile
+++ b/Makefile
@@ -148,6 +148,11 @@ upgrade_checks:
if ! make -m ${.CURDIR}/share/mk test > /dev/null 2>&1; then \
make make; \
fi
+ @cd ${.CURDIR}; \
+ if make -V .CURDIR:C/.// 2>&1 >/dev/null | \
+ grep -q "Unknown modifier 'C'"; then \
+ make make; \
+ fi
#
# A simple test target used as part of the test to see if make supports
OpenPOWER on IntegriCloud