Added message for folks who might try to 'make' without 'configure'ing (me,
[freeradius.git] / Makefile
index 3fa7d80..c8aa7a5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,12 @@ distclean: clean
        -find src/modules -name config.h | \
                while read file; do rm -f $$file; done
 
+ifndef prefix  # catch runs without configuring, and give helpful advice.
+Make.inc:
+       @echo "   Sorry!  You must run 'configure', before 'make'.";
+       @false
+endif
+
 ######################################################################
 #
 #  Automatic remaking rules suggested by info:autoconf#Automatic_Remaking