patch-1.3.39 linux/scripts/Makefile

Next file: linux/scripts/header.tk
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/scripts/Makefile linux/scripts/Makefile
@@ -1,14 +1,20 @@
+HOSTCFLAGS=-g
 HEADER=header.tk
 TAIL=tail.tk
 
 kconfig.tk: ../arch/${ARCH}/config.in tkparse ${HEADER} ${TAIL}
-	./tkparse < ../arch/${ARCH}/config.in > kconfig.tmp
-	cp ${HEADER} ./kconfig.tk
+	./tkparse < ../arch/${ARCH}/config.in  > kconfig.tmp
+	@if [ -f /usr/local/bin/wish ];	then \
+		echo '#!'"/usr/local/bin/wish -f" > kconfig.tk; \
+	else \
+		echo '#!'"/usr/bin/wish -f" > kconfig.tk; \
+	fi
+	cat ${HEADER} >> ./kconfig.tk
 	cat kconfig.tmp >> kconfig.tk
 	rm -f kconfig.tmp
+	echo "set defaults \"arch/${ARCH}/config.in\"" >> kconfig.tk
 	cat ${TAIL} >> kconfig.tk
 	chmod 755 kconfig.tk
-
 
 tkparse: tkparse.o tkcond.o tkgen.o
 	${HOSTCC} -o tkparse tkparse.o tkcond.o tkgen.o

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this