06f397e94e
default FTP directory, based on mk.conf variables SYSINST_FTP_HOST and SYSINST_FTP_DIR.
60 lines
1.2 KiB
Makefile
60 lines
1.2 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.7 2000/03/24 21:56:04 thorpej Exp $
|
|
#
|
|
# Makefile for install
|
|
|
|
.include <bsd.own.mk> # for mk.conf
|
|
|
|
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}\"
|
|
|
|
.if defined(SYSINST_FTP_HOST)
|
|
CPPFLAGS+=-DFTP_HOST="${SYSINST_FTP_HOST}"
|
|
.endif
|
|
|
|
.if defined(SYSINST_FTP_DIR)
|
|
CPPFLAGS+=-DFTP_DIR="${SYSINST_FTP_DIR}"
|
|
.endif
|
|
|
|
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
|