NetBSD/distrib/utils/sysinst/Makefile.inc

50 lines
1.0 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.3 1997/10/22 02:17:22 lukem 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}\"
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
disks.o install.o main.o net.o upgrade.o util.o: msg_defs.h menu_defs.h