Added message for folks who might try to 'make' without 'configure'ing (me,
authorcmiller <cmiller>
Sat, 16 Dec 2000 23:10:16 +0000 (23:10 +0000)
committercmiller <cmiller>
Sat, 16 Dec 2000 23:10:16 +0000 (23:10 +0000)
too much), and add to clean in raddb.

Makefile
raddb/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
index 73c6a99..effd127 100644 (file)
@@ -6,4 +6,5 @@ all:
 install:
 
 clean:
+       rm -f radiusd.conf || true