summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/Makefile
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-17 03:32:00 +0000
committerjhb <jhb@FreeBSD.org>2001-01-17 03:32:00 +0000
commitebb1fc8c55357801bd1079836acaff8c34f57068 (patch)
tree93991f39f0ac1d61ffe02c15d6fe103bbb84537e /usr.sbin/sysinstall/Makefile
parent80d719db5a213af2333a8074c09c1e16c09efbe2 (diff)
downloadFreeBSD-src-ebb1fc8c55357801bd1079836acaff8c34f57068.zip
FreeBSD-src-ebb1fc8c55357801bd1079836acaff8c34f57068.tar.gz
- We live in /usr/sbin now, so don't set special veriables to build a
static version that installs in /stand. Also, don't use an extra before-install target to create /stand. - Add missing $FreeBSD$. - Fix dependencies to handle keymap.h. (*) Submitted by: obrien (*)
Diffstat (limited to 'usr.sbin/sysinstall/Makefile')
-rw-r--r--usr.sbin/sysinstall/Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile
index 45ed6e5..45fb2a4 100644
--- a/usr.sbin/sysinstall/Makefile
+++ b/usr.sbin/sysinstall/Makefile
@@ -1,14 +1,11 @@
+# $FreeBSD$
+
PROG= sysinstall
MAN8= sysinstall.8
-BINDIR=/stand
-NOSHARED=YES
-
CLEANFILES+= makedevs.c rtermcap rtermcap.tmp dumpnlist
CLEANFILES+= keymap.tmp keymap.h
-.PATH: ${.CURDIR}/../disklabel ${.CURDIR}/../../usr.bin/cksum
-
SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c kget.c \
disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \
ftp.c globals.c http.c index.c install.c installUpgrade.c keymap.c \
@@ -17,7 +14,7 @@ SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c kget.c \
system.c tape.c tcpip.c termcap.c ufs.c usb.c user.c variable.c \
wizard.c keymap.h
-CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
+CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I.
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
@@ -25,7 +22,7 @@ CFLAGS+= -DPC98
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
LDADD= -ldialog -lncurses -lutil -ldisk -lftpio
-makedevs.c: Makefile rtermcap keymap.h
+makedevs.c: Makefile rtermcap
rm -f makedevs.tmp
echo '#include <sys/types.h>' > makedevs.tmp
./rtermcap ansi | \
@@ -72,8 +69,8 @@ makedevs.c: Makefile rtermcap keymap.h
.endif
mv makedevs.tmp makedevs.c
-rtermcap: ${.CURDIR}/rtermcap.c
- ${CC} -o rtermcap ${.CURDIR}/rtermcap.c -ltermcap
+rtermcap: rtermcap.c
+ ${CC} -o ${.TARGET} ${.ALLSRC} -ltermcap
KEYMAPS= be.iso br275.iso danish.iso finnish.iso fr.iso \
@@ -96,9 +93,4 @@ keymap.h:
( echo " { 0 }"; echo "};" ; echo "" ) >> keymap.tmp
mv keymap.tmp keymap.h
-beforeinstall:
- @if [ ! -d ${BINDIR}/ ]; then \
- mkdir -p ${BINDIR}; \
- fi
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud