Add makefile goo so it'll properly rebuild the menu files if osrelease.sh changed
This commit is contained in:
parent
c1647142f9
commit
c111d88861
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile.inc,v 1.9 2000/08/11 13:05:15 jdolecek Exp $
|
# $NetBSD: Makefile.inc,v 1.10 2000/12/17 09:22:47 jmc Exp $
|
||||||
#
|
#
|
||||||
# Makefile for install
|
# Makefile for install
|
||||||
|
|
||||||
|
@ -10,10 +10,12 @@ LDADD=-lcurses -ltermcap -lutil
|
||||||
LDSTATIC?=-static
|
LDSTATIC?=-static
|
||||||
|
|
||||||
.if exists(${.CURDIR}/../../../../sys/conf/osrelease.sh)
|
.if exists(${.CURDIR}/../../../../sys/conf/osrelease.sh)
|
||||||
|
VERDEP=${.CURDIR}/../../../../sys/conf/osrelease.sh
|
||||||
VER != sh ${.CURDIR}/../../../../sys/conf/osrelease.sh
|
VER != sh ${.CURDIR}/../../../../sys/conf/osrelease.sh
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if exists(${.CURDIR}/../../../../../sys/conf/osrelease.sh)
|
.if exists(${.CURDIR}/../../../../../sys/conf/osrelease.sh)
|
||||||
|
VERDEP=${.CURDIR}/../../../../../sys/conf/osrelease.sh
|
||||||
VER != sh ${.CURDIR}/../../../../../sys/conf/osrelease.sh
|
VER != sh ${.CURDIR}/../../../../../sys/conf/osrelease.sh
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -32,7 +34,7 @@ MKMAN=no
|
||||||
|
|
||||||
WARNS=1
|
WARNS=1
|
||||||
|
|
||||||
CLEANFILES= menu_defs.c menu_defs.h menus.def msg_defs.c msg_defs.h msg.def
|
CLEANFILES= menu_defs.c menu_defs.h menus.def msg_defs.c msg_defs.h msg.def msgtouch
|
||||||
|
|
||||||
SYSINSTLANG?=en
|
SYSINSTLANG?=en
|
||||||
|
|
||||||
|
@ -49,10 +51,14 @@ menu_defs.c menu_defs.h: menus.def
|
||||||
msg_defs.c msg_defs.h: msg.def
|
msg_defs.c msg_defs.h: msg.def
|
||||||
${MSGC} msg.def
|
${MSGC} msg.def
|
||||||
|
|
||||||
msg.def: msg.mi.${SYSINSTLANG} msg.md.${SYSINSTLANG}
|
# Needed to get proper dependency checks on osrelease
|
||||||
|
msgtouch: ${VERDEP}
|
||||||
|
touch ${.TARGET}
|
||||||
|
|
||||||
|
msg.def: msg.mi.${SYSINSTLANG} msg.md.${SYSINSTLANG} msgtouch
|
||||||
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
||||||
|
|
||||||
menus.def: menus.mi.${SYSINSTLANG} menus.md.${SYSINSTLANG}
|
menus.def: menus.mi.${SYSINSTLANG} menus.md.${SYSINSTLANG} msgtouch
|
||||||
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
||||||
|
|
||||||
menu_defs.c: msg_defs.h
|
menu_defs.c: msg_defs.h
|
||||||
|
|
Loading…
Reference in New Issue