summaryrefslogtreecommitdiff
path: root/make/calcdep.pl
diff options
context:
space:
mode:
Diffstat (limited to 'make/calcdep.pl')
-rwxr-xr-xmake/calcdep.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl
index 2a0ea5d92..81a7759d3 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -29,10 +29,16 @@ sub run() {
chdir "$ENV{SOURCEPATH}/src";
print MAKE <<END;
-# DO NOT EDIT
-# Autogenerated by calcdep
+# DO NOT EDIT THIS FILE
+# It is autogenerated by make/calcdep.pl, and will be overwritten
+# every time you rerun make in the main directory
VPATH = \$(SOURCEPATH)/src
+bad-target:
+ \@echo "This Makefile must be run by a sub-make from the source"
+ \@echo "in order to set the correct environment variables"
+ \@exit 1
+
all: inspircd commands modules
END