]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - Makefile
radiant/buildmenu: fixup, ref #138
[xonotic/netradiant.git] / Makefile
index 7e29224543a0771dcaec15bf07c16685f9e6f768..ff8161fbad379d4ea70c667d115a96b5974d5d90 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,13 @@
+# TODO: when deleting this Makefile, don't forget to also delete conftest.cpp
+# which is only required by this Makefile
+
+ifeq ($(I_KNOW_MAKEFILE_IS_DEPRECATED),)
+    $(shell printf 'ERROR: Makefile build is deprecated, use CMake instead, see README.md\n\n' >&2)
+    $(error I_KNOW_MAKEFILE_IS_DEPRECATED is not set)
+else
+    $(shell printf 'WARNING: deprecated Makefile build enforced\n\n' >&2)
+endif
+
 MAKEFILE_CONF      ?= Makefile.conf
 -include $(MAKEFILE_CONF)