diff options
author | ru <ru@FreeBSD.org> | 2002-05-22 14:35:47 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-05-22 14:35:47 +0000 |
commit | 367d0965de6fb8535844d5baf237d0b7f8200647 (patch) | |
tree | c9e275e25611c7fb2a69b2d062aa15e0f8e150ee /usr.bin/make | |
parent | 821e80e4ba499cef10c5bdb12693a55867093d9f (diff) | |
download | FreeBSD-src-367d0965de6fb8535844d5baf237d0b7f8200647.zip FreeBSD-src-367d0965de6fb8535844d5baf237d0b7f8200647.tar.gz |
Added the MAKE_VERSION global that could be useful in determining
if a given make(1) is feature-compatible with a set of makefiles.
When merged, this will be used to replace the ugly upgrade_checks
hacks in src/Makefile.
Version has the RYYYYMMDDX format, where R is from RELENG_<R> and
X allows for 10 distinguishable changes per day.
Discussed with: bde
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/Makefile | 4 | ||||
-rw-r--r-- | usr.bin/make/main.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index d9b64ca..b400d3c 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -15,6 +15,10 @@ SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \ NOSHARED?= YES +CFLAGS+=-DMAKE_VERSION=\"5200205220\" + +main.o: ${MAKEFILE} + # Set the shell which make(1) uses. Bourne is the default, but a decent # Korn shell works fine, and much faster. Using the C shell for this # will almost certainly break everything, but it's Unix tradition to diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 0c8a2f5..f517263 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -659,6 +659,9 @@ main(argc, argv) Var_Set("MACHINE", machine, VAR_GLOBAL); Var_Set("MACHINE_ARCH", machine_arch, VAR_GLOBAL); Var_Set("MACHINE_CPU", machine_cpu, VAR_GLOBAL); +#ifdef MAKE_VERSION + Var_Set("MAKE_VERSION", MAKE_VERSION, VAR_GLOBAL); +#endif /* * First snag any flags out of the MAKE environment variable. |