Go to file
christos 8819044d2a [initial version of the substitution/regexp changes were courtesy of Der Mouse]
- fix the variable substitution code in make [PR/2748]
      1. change s/a/b/ so that it substitutes the first occurance of the
	 pattern on each word, not only the first word.
      2. add flag '1' to the variable substitution so that the substitutions
	 get performed only once.

  ***THIS IS AN INCOMPATIBLE CHANGE!***

  Unfortunately there was no way to make things consistent without
  modifying the current behavior. Fortunately none of our Makefiles
  depended on this.

	    OLD:

		VAR      = aa1 aa2 aa3 aa4

		S/a/b/   = ba1 aa2 aa3 aa4
		S/a/b/g  = bb1 bb2 bb3 bb4

	    NEW:

		VAR      = aa1 aa2 aa3 aa4

		S/a/b/   = ba1 ba2 ba3 ba4
		S/a/b/1  = ba1 aa2 aa3 aa4
		S/a/b/g  = bb1 bb2 bb3 bb4
		S/a/b/1g = bb1 aa2 aa3 aa4

- add regexp variable substitution via 'C/foo/bar/' [PR/2752]

- add variable quoting via the ${VAR:Q} modifier. This is useful when running
  recursive invocations of make(1):

	make VAR=${VAR:Q}

  will always work... (This may prove useful in the kernel builds...) [PR/2981]
1996-12-24 17:36:27 +00:00
bin Re-introduce some code from 1.14 (with modifications) to make the 1996-12-22 08:34:34 +00:00
distrib Add ttyaction.0,cpu_switch.0,ctxsw.0,mi_switch.0 1996-12-09 22:13:54 +00:00
etc MAKEDEV 1996-12-20 17:24:45 +00:00
games Clean this up, and be more consistent: 1996-12-23 01:14:34 +00:00
gnu <link.h> has moved in with the run-time linker source. 1996-12-23 22:13:03 +00:00
include <link.h> is now installed from the rtld source directory. 1996-12-23 22:15:36 +00:00
lib Report yp errors every _yplib_nerrs like the other routines. 1996-12-24 15:08:39 +00:00
libexec <link.h> has moved in with the run-time linker source. 1996-12-23 22:13:03 +00:00
regress merge DB 1.85 changes 1996-05-03 21:50:36 +00:00
sbin remove mkfs(8) xref; PR 3041 1996-12-24 02:32:25 +00:00
share add an afterdepend target (a la the one in bsd.lib.mk) that processes 1996-12-20 16:39:03 +00:00
sys Pander to "kernel_text" kludge. 1996-12-23 15:27:47 +00:00
usr.bin [initial version of the substitution/regexp changes were courtesy of Der Mouse] 1996-12-24 17:36:27 +00:00
usr.sbin fix typo; PR bin/3038. 1996-12-24 02:44:58 +00:00
Makefile All of domestic/lib now builds without errors, so we build it all. 1996-11-27 02:04:06 +00:00