diff options
-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. |