changeset 96114:d2cbd54eeb90

($(lisp)/cus-load.el): Don't use `touch'. Instead, generate an empty cus-load.el with `echo', and include "Local Variables" section to prevent the empty file from being compiled. (cus-load.el-SH, cus-load.el-CMD): New SHELLTYPE-specific targets that generate an empty cus-load.el.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 20 Jun 2008 15:47:19 +0000
parents 3a64b6ee3005
children 6d96d49c7ae7
files lisp/makefile.w32-in
diffstat 1 files changed, 24 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/makefile.w32-in	Fri Jun 20 15:43:29 2008 +0000
+++ b/lisp/makefile.w32-in	Fri Jun 20 15:47:19 2008 +0000
@@ -109,8 +109,31 @@
 
 doit:
 
+cus-load.el-SH:
+	echo ";;; cus-load.el --- automatically extracted custom dependencies" > $@
+	echo ";;" >> $@; echo ";;; Code:" >> $@
+	echo "" >> $@
+	echo ";; Local Variables:" >> $@
+	echo ";; version-control: never" >> $@
+	echo ";; no-byte-compile: t" >> $@
+	echo ";; no-update-autoloads: t" >> $@
+	echo ";; End:" >> $@
+
+cus-load.el-CMD:
+	echo ;;; cus-load.el --- automatically extracted custom dependencies> $@
+	echo ;;>> $@
+	echo ;;; Code:>> $@
+	echo.>> $@
+	echo ;; Local Variables:>> $@
+	echo ;; version-control: never>> $@
+	echo ;; no-byte-compile: t>> $@
+	echo ;; no-update-autoloads: t>> $@
+	echo ;; End:>> $@
+
 $(lisp)/cus-load.el:
-	touch $@
+	$(MAKE) $(MFLAGS) cus-load.el-$(SHELLTYPE)
+	mv cus-load.el-$(SHELLTYPE) $@
+
 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
 #          this can break with GNU Make 3.81 and later if sh.exe is used.
 custom-deps: $(lisp)/cus-load.el $(lisp)/loaddefs.el doit