aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-12-10 16:27:00 +0100
committerSteve Bennett <steveb@workware.net.au>2020-12-11 21:59:46 +1000
commita2816313da54dcadcdb8eecb3875fcc7373432ea (patch)
tree9e9232c3357e24671400db4d80d476fd9faeb62b /Makefile.in
parentd224c9a2b7b20e8ad13a6b1406acdd156f180dff (diff)
downloadjimtcl-a2816313da54dcadcdb8eecb3875fcc7373432ea.zip
jimtcl-a2816313da54dcadcdb8eecb3875fcc7373432ea.tar.gz
jimtcl-a2816313da54dcadcdb8eecb3875fcc7373432ea.tar.bz2
autosetup: keep clean the source tree on out-of-tree build
If the build host doesn't have neither jimsh nor tclsh installed, during 'configure' the autosetup will build 'autosetup/jimsh0' inside the source tree. This happens also when out-of-tree build is used. Making dirty the source tree during out-of-tree build causes applications that use jimtcl as submodule (e.g. OpenOCD) to fail at 'make distcheck'. Modify 'autosetup-find-tclsh' to build 'jimsh0' in the current folder. For jimtcl project it would be the root of the source tree or the root of the out-of-tree build. Update 'Makefile.in' to search for 'jimsh0' in the new path during 'distclean'. Reported-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index c12d088..1b5e00d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -211,7 +211,7 @@ clean:
@endif
distclean: clean
- rm -f jimautoconf.h jim-config.h Makefile config.log @srcdir@/autosetup/jimsh0@EXEEXT@ build-jim-ext
+ rm -f jimautoconf.h jim-config.h Makefile config.log jimsh0@EXEEXT@ build-jim-ext
rm -f jimtcl.pc tests/Makefile examples.api/Makefile
ship: Tcl.html