50 lines
1.0 KiB
Makefile
50 lines
1.0 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.6 1999/12/27 20:31:32 garbled Exp $
|
|
#
|
|
# Makefile for install
|
|
|
|
PROG=sysinst
|
|
|
|
LDADD=-lcurses -ltermcap -lutil
|
|
|
|
.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
|
|
|
|
CPPFLAGS+= -I. -I${.CURDIR}/../.. -I${.CURDIR} \
|
|
-DREL=\"${VER}\" -DMACH=\"${MACHINE}\"
|
|
|
|
MKMAN=no
|
|
|
|
WARNS=1
|
|
|
|
CLEANFILES= menu_defs.c menu_defs.h menus.def msg_defs.c msg_defs.h msg.def
|
|
|
|
LANG?=en
|
|
|
|
.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
|
|
|
|
disks.o install.o main.o net.o upgrade.o util.o: msg_defs.h menu_defs.h
|