Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst Add makefile goo so it'll properly reb...



details:   https://anonhg.NetBSD.org/src/rev/73734bfb4954
branches:  trunk
changeset: 500705:73734bfb4954
user:      jmc <jmc%NetBSD.org@localhost>
date:      Sun Dec 17 09:22:47 2000 +0000

description:
Add makefile goo so it'll properly rebuild the menu files if osrelease.sh changed

diffstat:

 distrib/utils/sysinst/Makefile.inc |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 086c8c08c64b -r 73734bfb4954 distrib/utils/sysinst/Makefile.inc
--- a/distrib/utils/sysinst/Makefile.inc        Sun Dec 17 09:17:51 2000 +0000
+++ b/distrib/utils/sysinst/Makefile.inc        Sun Dec 17 09:22:47 2000 +0000
@@ -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
 
@@ -10,10 +10,12 @@
 LDSTATIC?=-static
 
 .if exists(${.CURDIR}/../../../../sys/conf/osrelease.sh)
+VERDEP=${.CURDIR}/../../../../sys/conf/osrelease.sh
 VER != sh ${.CURDIR}/../../../../sys/conf/osrelease.sh
 .endif
 
 .if exists(${.CURDIR}/../../../../../sys/conf/osrelease.sh)
+VERDEP=${.CURDIR}/../../../../../sys/conf/osrelease.sh
 VER != sh ${.CURDIR}/../../../../../sys/conf/osrelease.sh
 .endif
 
@@ -32,7 +34,7 @@
 
 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
 
@@ -49,10 +51,14 @@
 msg_defs.c msg_defs.h: 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}
 
-menus.def: menus.mi.${SYSINSTLANG} menus.md.${SYSINSTLANG}
+menus.def: menus.mi.${SYSINSTLANG} menus.md.${SYSINSTLANG} msgtouch
        sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
 
 menu_defs.c: msg_defs.h



Home | Main Index | Thread Index | Old Index