SPDX: Mass-update to GPL-2.0-or-later
[exim.git] / src / Makefile
index 3aa3cc374122b01106db6a370a58e3f60ee6dc27..d190d9aa06768a03cd349d732ebfa984b2db55b3 100644 (file)
@@ -2,7 +2,9 @@
 # appropriate links, and then creating and running the main makefile in that
 # directory.
 
+# Copyright (c) The Exim Maintainers 2022
 # Copyright (c) University of Cambridge, 1995 - 2018
+# SPDX-License-Identifier: GPL-2.0-or-later
 # See the file NOTICE for conditions of use and distribution.
 
 # IRIX make uses the shell that is in the SHELL variable, which often defaults
@@ -102,6 +104,7 @@ distclean:; $(RM_COMMAND) -rf build-* cscope*
 cscope.files: FRC
        echo "-q" > $@
        echo "-p3" >> $@
+       -bd=build-$(buildname); [ -d $$bd ] && echo -e "$$bd/config.h\n$$bd/Makefile" >> $@
        find src Local OS exim_monitor -name "*.[cshyl]" -print \
                    -o -name "os.[ch]*" -print \
                    -o -name "*akefile*" -print \