diff options
author | emaste <emaste@FreeBSD.org> | 2017-01-20 21:10:37 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-01-20 21:10:37 +0000 |
commit | 079422928fab5d570844346907d596d8f8ceefcf (patch) | |
tree | 3df809094bbe9d20651a6c87f754178d333313fd /sys/boot/common | |
parent | 01f89b77024ef376089ab736a2278e0b52bf4dae (diff) | |
download | FreeBSD-src-079422928fab5d570844346907d596d8f8ceefcf.zip FreeBSD-src-079422928fab5d570844346907d596d8f8ceefcf.tar.gz |
MFC r310267: Deduplicate loader vers.c Makefile rules
The Makefile rule to create vers.c for loader version info was
previously duplicated in each of the various loader Makefiles.
Instead, share a common rule in Makefile.inc.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/boot/common')
-rw-r--r-- | sys/boot/common/Makefile.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/common/Makefile.inc b/sys/boot/common/Makefile.inc index 480279d..8bd6c7d 100644 --- a/sys/boot/common/Makefile.inc +++ b/sys/boot/common/Makefile.inc @@ -70,3 +70,8 @@ CFLAGS+= -DBOOT_PROMPT_123 SRCS+= install.c CFLAGS+=-I${.CURDIR}/../../../../lib/libstand .endif + +CLEANFILES+= vers.c +VERSION_FILE?= ${.CURDIR}/version +vers.c: ${SRCTOP}/sys/boot/common/newvers.sh ${VERSION_FILE} + sh ${SRCTOP}/sys/boot/common/newvers.sh ${VERSION_FILE} ${NEWVERSWHAT} |