]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Clarify comments in Makefiles
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 3 Nov 2009 01:14:04 +0000 (01:14 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 3 Nov 2009 01:14:04 +0000 (01:14 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11990 e03df62e-2008-0410-955e-edbf42e46eb7

make/calcdep.pl
make/template/main.mk

index 2a0ea5d92a7390112b8935810c2c481abf0bb1cd..81a7759d34734ee1a4469240df5ca502d4ca7cc2 100755 (executable)
@@ -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
index fa59f6519430ba245b94677457673ec0e1b1257d..666104d1b7dc7ec3dd31aef653548fc3d30e6584 100644 (file)
@@ -2,8 +2,12 @@
 #
 #       (C) InspIRCd Development Team, 2002-2009
 # This file is automagically generated by configure, from
-#     .Makefile.inc. Any changes make will go away!
-#   Please do not edit unless you know what you're doing.
+# make/templates/main.mk. Any changes make to the generated
+#     files will go away whenever it is regenerated!
+#
+# Please do not edit unless you know what you're doing. This
+# needs to work in both GNU and BSD make; it is mangled for
+# them by configure.
 #
 
 CC = @CC@