diff src/Makefile.am @ 15100:8523df595d42

maint: Add DO NOT EDIT messages to build system for src/*.in.h. * build-aux/common.mk (do_subst_config_val, do_subst_default_val): Add new sed expansion rule for NO_EDIT_WARNING. * Makefile.am (version.h rule): Add new sed expansion rule for NO_EDIT_WARNING. * interp-core/module.mk (mxarray.h): Add new sed expansion rule for NO_EDIT_WARNING. * mxarray.in.h, defaults.in.h, oct-conf.in.h, version.in.h: Add %NO_EDIT_WARNING% to top-of-file for expansion by build system.
author Rik <rik@octave.org>
date Fri, 03 Aug 2012 16:45:17 -0700
parents 909a2797935b
children 03381a36f70d
line wrap: on
line diff
--- a/src/Makefile.am	Fri Aug 03 16:38:53 2012 -0700
+++ b/src/Makefile.am	Fri Aug 03 16:45:17 2012 -0700
@@ -264,6 +264,7 @@
 
 version.h: version.in.h Makefile
 	$(SED) < $< \
+	  -e "s|%NO_EDIT_WARNING%|DO NOT EDIT!  Generated automatically from $(<F) by Make.|" \
 	  -e "s|%OCTAVE_API_VERSION_NUMBER%|${OCTAVE_API_VERSION_NUMBER}|" \
 	  -e "s|%OCTAVE_API_VERSION%|\"${OCTAVE_API_VERSION}\"|" \
 	  -e "s|%OCTAVE_COPYRIGHT%|\"${OCTAVE_COPYRIGHT}\"|" \