1997-10-22 06:17:11 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.3 1997/10/22 02:17:22 lukem Exp $
|
|
|
|
#
|
1997-09-27 03:02:53 +04:00
|
|
|
# Makefile for install
|
|
|
|
|
|
|
|
PROG=sysinst
|
|
|
|
|
1997-10-15 08:35:17 +04:00
|
|
|
LDADD=-lcurses -ltermcap -lutil
|
1997-09-27 03:02:53 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../../../sys/conf/osrelease.sh)
|
|
|
|
VER != sh ${.CURDIR}/../../../../sys/conf/osrelease.sh
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../../../../sys/conf/osrelease.sh)
|
|
|
|
VER != sh ${.CURDIR}/../../../../../sys/conf/osrelease.sh
|
|
|
|
.endif
|
|
|
|
|
1997-10-22 06:17:11 +04:00
|
|
|
CPPFLAGS+= -I. -I${.CURDIR}/../.. -I${.CURDIR} \
|
1997-09-27 03:02:53 +04:00
|
|
|
-DREL=\"${VER}\" -DMACH=\"${MACHINE}\"
|
|
|
|
|
|
|
|
NOMAN=y
|
|
|
|
|
|
|
|
WARNS=1
|
|
|
|
|
|
|
|
CLEANFILES= menu_defs.c menu_defs.h menus.def msg_defs.c msg_defs.h msg.def
|
|
|
|
|
|
|
|
LANG?=eng
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../..
|
|
|
|
|
|
|
|
MENUC=menuc
|
|
|
|
MSGC=msgc
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
menu_defs.c menu_defs.h: menus.def
|
|
|
|
${MENUC} menus.def
|
|
|
|
|
|
|
|
msg_defs.c msg_defs.h: msg.def
|
|
|
|
${MSGC} msg.def
|
|
|
|
|
|
|
|
msg.def: msg.mi.${LANG} msg.md.${LANG}
|
|
|
|
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
menus.def: menus.mi.${LANG} menus.md.${LANG}
|
|
|
|
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
menu_defs.c: msg_defs.h
|
1997-10-22 06:17:11 +04:00
|
|
|
|
|
|
|
disks.o install.o main.o net.o upgrade.o util.o: msg_defs.h menu_defs.h
|