head	1.15;
access;
symbols
	perseant-exfatfs-base-20250801:1.15
	perseant-exfatfs-base-20240630:1.15
	perseant-exfatfs:1.15.0.36
	perseant-exfatfs-base:1.15
	cjep_sun2x:1.15.0.34
	cjep_sun2x-base:1.15
	cjep_staticlib_x-base1:1.15
	cjep_staticlib_x:1.15.0.32
	cjep_staticlib_x-base:1.15
	phil-wifi-20200421:1.15
	phil-wifi-20200411:1.15
	phil-wifi-20200406:1.15
	pgoyette-compat-merge-20190127:1.15
	pgoyette-compat-20190127:1.15
	pgoyette-compat-20190118:1.15
	pgoyette-compat-1226:1.15
	pgoyette-compat-1126:1.15
	pgoyette-compat-1020:1.15
	pgoyette-compat-0930:1.15
	pgoyette-compat-0906:1.15
	pgoyette-compat-0728:1.15
	pgoyette-compat-0625:1.15
	pgoyette-compat-0521:1.15
	pgoyette-compat-0502:1.15
	pgoyette-compat-0422:1.15
	pgoyette-compat-0415:1.15
	pgoyette-compat-0407:1.15
	pgoyette-compat-0330:1.15
	pgoyette-compat-0322:1.15
	pgoyette-compat-0315:1.15
	pgoyette-compat:1.15.0.30
	pgoyette-compat-base:1.15
	perseant-stdc-iso10646:1.15.0.28
	perseant-stdc-iso10646-base:1.15
	prg-localcount2-base3:1.15
	prg-localcount2-base2:1.15
	prg-localcount2-base1:1.15
	prg-localcount2:1.15.0.26
	prg-localcount2-base:1.15
	pgoyette-localcount-20170426:1.15
	bouyer-socketcan-base1:1.15
	pgoyette-localcount-20170320:1.15
	bouyer-socketcan:1.15.0.24
	bouyer-socketcan-base:1.15
	pgoyette-localcount-20170107:1.15
	pgoyette-localcount-20161104:1.15
	localcount-20160914:1.15
	pgoyette-localcount-20160806:1.15
	pgoyette-localcount-20160726:1.15
	pgoyette-localcount:1.15.0.22
	pgoyette-localcount-base:1.15
	netbsd-5-2-3-RELEASE:1.15
	netbsd-5-1-5-RELEASE:1.15
	yamt-pagecache-base9:1.15
	yamt-pagecache-tag8:1.15
	tls-earlyentropy:1.15.0.18
	tls-earlyentropy-base:1.15
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.15
	riastradh-drm2-base3:1.15
	netbsd-5-2-2-RELEASE:1.15
	netbsd-5-1-4-RELEASE:1.15
	netbsd-5-2-1-RELEASE:1.15
	netbsd-5-1-3-RELEASE:1.15
	agc-symver:1.15.0.20
	agc-symver-base:1.15
	tls-maxphys-base:1.15
	yamt-pagecache-base8:1.15
	netbsd-5-2:1.15.0.16
	yamt-pagecache-base7:1.15
	netbsd-5-2-RELEASE:1.15
	netbsd-5-2-RC1:1.15
	yamt-pagecache-base6:1.15
	yamt-pagecache-base5:1.15
	yamt-pagecache-base4:1.15
	netbsd-5-1-2-RELEASE:1.15
	netbsd-5-1-1-RELEASE:1.15
	yamt-pagecache-base3:1.15
	yamt-pagecache-base2:1.15
	yamt-pagecache:1.15.0.14
	yamt-pagecache-base:1.15
	bouyer-quota2-nbase:1.15
	bouyer-quota2:1.15.0.12
	bouyer-quota2-base:1.15
	matt-nb5-pq3:1.15.0.10
	matt-nb5-pq3-base:1.15
	netbsd-5-1:1.15.0.8
	netbsd-5-1-RELEASE:1.15
	netbsd-5-1-RC4:1.15
	netbsd-5-1-RC3:1.15
	netbsd-5-1-RC2:1.15
	netbsd-5-1-RC1:1.15
	netbsd-5-0-2-RELEASE:1.15
	netbsd-5-0-1-RELEASE:1.15
	jym-xensuspend-nbase:1.15
	netbsd-5-0:1.15.0.6
	netbsd-5-0-RELEASE:1.15
	netbsd-5-0-RC4:1.15
	netbsd-5-0-RC3:1.15
	netbsd-5-0-RC2:1.15
	jym-xensuspend:1.15.0.4
	jym-xensuspend-base:1.15
	netbsd-5-0-RC1:1.15
	netbsd-5:1.15.0.2
	netbsd-5-base:1.15
	matt-mips64-base2:1.14
	matt-mips64:1.12.0.20
	netbsd-4-0-1-RELEASE:1.12
	wrstuden-revivesa-base-3:1.14
	wrstuden-revivesa-base-2:1.14
	wrstuden-fixsa-newbase:1.12
	wrstuden-revivesa-base-1:1.12
	yamt-pf42-base4:1.12
	yamt-pf42-base3:1.12
	hpcarm-cleanup-nbase:1.12
	yamt-pf42-baseX:1.12
	yamt-pf42-base2:1.12
	wrstuden-revivesa:1.12.0.18
	wrstuden-revivesa-base:1.12
	yamt-pf42:1.12.0.16
	yamt-pf42-base:1.12
	keiichi-mipv6-nbase:1.12
	keiichi-mipv6:1.12.0.14
	keiichi-mipv6-base:1.12
	matt-armv6-nbase:1.12
	matt-armv6-prevmlocking:1.12
	wrstuden-fixsa-base-1:1.12
	netbsd-4-0:1.12.0.12
	netbsd-4-0-RELEASE:1.12
	cube-autoconf:1.12.0.10
	cube-autoconf-base:1.12
	netbsd-4-0-RC5:1.12
	netbsd-4-0-RC4:1.12
	netbsd-4-0-RC3:1.12
	netbsd-4-0-RC2:1.12
	netbsd-4-0-RC1:1.12
	matt-armv6:1.12.0.8
	matt-armv6-base:1.12
	matt-mips64-base:1.12
	hpcarm-cleanup:1.12.0.6
	hpcarm-cleanup-base:1.12
	netbsd-3-1-1-RELEASE:1.11
	netbsd-3-0-3-RELEASE:1.11
	wrstuden-fixsa:1.12.0.4
	wrstuden-fixsa-base:1.12
	abandoned-netbsd-4-base:1.11
	abandoned-netbsd-4:1.11.0.16
	netbsd-3-1:1.11.0.18
	netbsd-3-1-RELEASE:1.11
	netbsd-3-0-2-RELEASE:1.11
	netbsd-3-1-RC4:1.11
	netbsd-3-1-RC3:1.11
	netbsd-3-1-RC2:1.11
	netbsd-3-1-RC1:1.11
	netbsd-4:1.12.0.2
	netbsd-4-base:1.12
	chap-midi-nbase:1.11
	netbsd-3-0-1-RELEASE:1.11
	chap-midi:1.11.0.14
	chap-midi-base:1.11
	netbsd-3-0:1.11.0.12
	netbsd-3-0-RELEASE:1.11
	netbsd-3-0-RC6:1.11
	netbsd-3-0-RC5:1.11
	netbsd-3-0-RC4:1.11
	netbsd-3-0-RC3:1.11
	netbsd-3-0-RC2:1.11
	netbsd-3-0-RC1:1.11
	netbsd-2-0-3-RELEASE:1.11
	netbsd-2-1:1.11.0.10
	netbsd-2-1-RELEASE:1.11
	netbsd-2-1-RC6:1.11
	netbsd-2-1-RC5:1.11
	netbsd-2-1-RC4:1.11
	netbsd-2-1-RC3:1.11
	netbsd-2-1-RC2:1.11
	netbsd-2-1-RC1:1.11
	netbsd-2-0-2-RELEASE:1.11
	netbsd-3:1.11.0.8
	netbsd-3-base:1.11
	netbsd-2-0-1-RELEASE:1.11
	netbsd-2:1.11.0.6
	netbsd-2-base:1.11
	netbsd-2-0-RELEASE:1.11
	netbsd-2-0-RC5:1.11
	netbsd-2-0-RC4:1.11
	netbsd-2-0-RC3:1.11
	netbsd-2-0-RC2:1.11
	netbsd-2-0-RC1:1.11
	netbsd-2-0:1.11.0.4
	netbsd-2-0-base:1.11
	netbsd-1-6-PATCH002-RELEASE:1.11
	netbsd-1-6-PATCH002:1.11
	netbsd-1-6-PATCH002-RC4:1.11
	netbsd-1-6-PATCH002-RC3:1.11
	netbsd-1-6-PATCH002-RC2:1.11
	netbsd-1-6-PATCH002-RC1:1.11
	netbsd-1-6-PATCH001:1.11
	netbsd-1-6-PATCH001-RELEASE:1.11
	netbsd-1-6-PATCH001-RC3:1.11
	netbsd-1-6-PATCH001-RC2:1.11
	netbsd-1-6-PATCH001-RC1:1.11
	fvdl_fs64_base:1.11
	netbsd-1-6-RELEASE:1.11
	netbsd-1-6-RC3:1.11
	netbsd-1-6-RC2:1.11
	netbsd-1-6-RC1:1.11
	netbsd-1-6:1.11.0.2
	netbsd-1-6-base:1.11
	netbsd-1-5-PATCH003:1.8
	netbsd-1-5-PATCH002:1.8
	netbsd-1-5-PATCH001:1.8
	netbsd-1-5-RELEASE:1.8
	netbsd-1-5-BETA2:1.8
	netbsd-1-5-BETA:1.8
	netbsd-1-4-PATCH003:1.8
	netbsd-1-5-ALPHA2:1.8
	netbsd-1-5:1.8.0.12
	netbsd-1-5-base:1.8
	minoura-xpg4dl-base:1.8
	minoura-xpg4dl:1.8.0.10
	netbsd-1-4-PATCH002:1.8
	wrstuden-devbsize-19991221:1.8
	wrstuden-devbsize:1.8.0.8
	wrstuden-devbsize-base:1.8
	comdex-fall-1999:1.8.0.6
	comdex-fall-1999-base:1.8
	netbsd-1-4-PATCH001:1.8
	netbsd-1-4-RELEASE:1.8
	netbsd-1-4:1.8.0.4
	netbsd-1-4-base:1.8
	netbsd-1-3-PATCH003:1.8
	netbsd-1-3-PATCH003-CANDIDATE2:1.8
	netbsd-1-3-PATCH003-CANDIDATE1:1.8
	netbsd-1-3-PATCH003-CANDIDATE0:1.8
	netbsd-1-3-PATCH002:1.8
	netbsd-1-3-PATCH001:1.8
	netbsd-1-3-RELEASE:1.8
	netbsd-1-3-BETA:1.8
	netbsd-1-3:1.8.0.2
	netbsd-1-3-base:1.8
	netbsd-1-2-PATCH001:1.7.4.1
	netbsd-1-2-RELEASE:1.7.4.1
	netbsd-1-2-BETA:1.7.4.1
	netbsd-1-2:1.7.0.4
	netbsd-1-2-base:1.7
	nvi_1_66:1.1.1.4
	BOSTIC:1.1.1
	netbsd-1-1-PATCH001:1.6
	netbsd-1-1-RELEASE:1.6
	netbsd-1-1:1.6.0.2
	netbsd-1-1-base:1.6
	netbsd-1-0-PATCH06:1.5
	netbsd-1-0-PATCH05:1.5
	netbsd-1-0-PATCH04:1.5
	netbsd-1-0-PATCH03:1.5
	netbsd-1-0-PATCH02:1.5
	netbsd-1-0-PATCH1:1.5
	netbsd-1-0-PATCH0:1.5
	netbsd-1-0-RELEASE:1.5
	netbsd-1-0:1.5.0.2
	nvi-1-34b:1.1.1.3
	nvi-1-33b:1.1.1.3
	netbsd-1-0-base:1.4
	nvi-1-11b:1.1.1.2
	nvi-1-03:1.1.1.1
	bostic-nvi:1.1.1;
locks; strict;
comment	@# @;


1.15
date	2008.10.29.16.49.33;	author christos;	state dead;
branches;
next	1.14;

1.14
date	2008.09.02.09.26.55;	author christos;	state Exp;
branches;
next	1.13;

1.13
date	2008.08.31.12.09.48;	author christos;	state Exp;
branches;
next	1.12;

1.12
date	2006.10.08.21.47.21;	author dogcow;	state Exp;
branches
	1.12.18.1;
next	1.11;

1.11
date	2001.05.29.21.25.23;	author kleink;	state Exp;
branches;
next	1.10;

1.10
date	2001.04.11.21.01.44;	author aymeric;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.31.11.37.44;	author aymeric;	state Exp;
branches;
next	1.8;

1.8
date	96.06.23.05.59.51;	author mrg;	state Exp;
branches;
next	1.7;

1.7
date	96.05.20.03.47.00;	author mrg;	state Exp;
branches
	1.7.4.1;
next	1.6;

1.6
date	94.09.19.05.13.35;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	94.08.17.16.35.15;	author cgd;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	94.03.28.04.27.20;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	94.01.24.07.09.12;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	94.01.24.06.38.43;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	94.01.24.05.52.57;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.12.18.1
date	2008.09.18.04.29.25;	author wrstuden;	state Exp;
branches;
next	;

1.7.4.1
date	96.05.29.03.19.10;	author mrg;	state Exp;
branches;
next	;

1.5.2.1
date	94.08.17.16.35.15;	author cgd;	state dead;
branches;
next	1.5.2.2;

1.5.2.2
date	94.08.17.16.35.16;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	94.01.24.05.52.58;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.03.28.02.51.01;	author cgd;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	94.08.17.16.16.11;	author cgd;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	96.05.20.01.53.28;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.15
log
@bye old vi!
@
text
@#	$NetBSD: Makefile,v 1.14 2008/09/02 09:26:55 christos Exp $

.include <bsd.own.mk>

MKOLDVI?=no
.if ${MKOLDVI} != "no"

.if ${MKSHARE} != "no"
SUBDIR+= catalog recover
.endif

SUBDIR+= build

.if make(install)
SUBDIR+= docs/USD.doc/edit docs/USD.doc/exref docs/USD.doc/vi.ref
SUBDIR+= docs/USD.doc/vitut
SUBDIR+= recover
.endif

.endif

.include <bsd.subdir.mk>
@


1.14
log
@disable completely.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2008/08/31 12:09:48 christos Exp $
@


1.13
log
@For now descend into old vi for virecover and doc. Unfortunately the
new vi vi.ref is now texinfo and our makeinfo is too old to deal with it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2006/10/08 21:47:21 dogcow Exp $
d6 2
d9 1
a9 4
.if ${MKOLDVI} != "no"
SUBDIR+= catalog
.endif
SUBDIR+= recover
a11 1
.if ${MKOLDVI} != "no"
a12 1
.endif
d20 2
@


1.12
log
@Build virecover.0
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2001/05/29 21:25:23 kleink Exp $
d5 1
d7 4
a10 1
SUBDIR+= catalog recover
d13 1
d15 1
@


1.12.18.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2006/10/08 21:47:21 dogcow Exp $
a4 3
MKOLDVI?=no
.if ${MKOLDVI} != "no"

a16 2
.endif

@


1.11
log
@Don't descend into catalog with MKSHARE=no.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2001/04/11 21:01:44 aymeric Exp $
d6 1
a6 1
SUBDIR+= catalog
@


1.10
log
@recurse into recover on make install
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2001/03/31 11:37:44 aymeric Exp $
d3 7
a9 1
SUBDIR= catalog build
@


1.9
log
@merge changes after import of nvi 1.79
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1996/05/20 03:47:00 mrg Exp $
d6 3
a8 1
SUBDIR+=docs/USD.doc/edit docs/USD.doc/exref docs/USD.doc/vi.ref docs/USD.doc/vitut
@


1.8
log
@look for USD.doc in the right place.
@
text
@d3 1
a3 1
SUBDIR= build
@


1.7
log
@merge in nvi 1.66
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.4 1996/05/20 01:53:28 mrg Exp $
d6 1
a6 1
SUBDIR+=USD.doc/edit USD.doc/exref USD.doc/vi.ref USD.doc/vitut
@


1.7.4.1
log
@look for USD.doc in the right place.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1996/05/20 03:47:00 mrg Exp $
d6 1
a6 1
SUBDIR+=docs/USD.doc/edit docs/USD.doc/exref docs/USD.doc/vi.ref docs/USD.doc/vitut
@


1.6
log
@Install the documentation.
@
text
@d1 1
a1 6
#	@@(#)Makefile	8.2 (Berkeley) 8/16/94
#
# This Makefile is ONLY correct for 4.4BSD style source trees.  If you're
# not using a system with that setup, it's not going to work.  Read the
# files README and PORT/README for information on building nvi for other
# systems.
d3 1
a3 1
SUBDIR= common
@


1.5
log
@clean up import.  still have to hack some things.
@
text
@d9 5
@


1.5.2.1
log
@file Makefile was added on branch netbsd-1-0 on 1994-08-17 16:35:16 +0000
@
text
@d1 9
@


1.5.2.2
log
@clean up import.  still have to hack some things.
@
text
@a0 9
#	@@(#)Makefile	8.2 (Berkeley) 8/16/94
#
# This Makefile is ONLY correct for 4.4BSD style source trees.  If you're
# not using a system with that setup, it's not going to work.  Read the
# files README and PORT/README for information on building nvi for other
# systems.

SUBDIR= common
.include <bsd.subdir.mk>
@


1.4
log
@nvi 1.11(beta) from bostic.  reconcile conflicts/kill rcsids.
@
text
@d1 6
a6 2
#	from: @@(#)Makefile	8.30 (Berkeley) 3/22/94
#	$Id$
d8 2
a9 106
PROG=	nvi
MAN1=	vi.0
#CFLAGS=-g -DDEBUG
#CFLAGS+=-pg
CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/ex -I${.CURDIR}/vi
#STRIP=
.PATH:	${.CURDIR}/docs ${.CURDIR}/ex ${.CURDIR}/sex ${.CURDIR}/vi \
	${.CURDIR}/svi ${.CURDIR}/xaw

# General sources.
SRCS=	ascii.c cut.c delete.c exf.c intr.c line.c log.c main.c \
	mark.c options.c options_f.c put.c screen.c search.c seq.c \
	recover.c term.c timer.c trace.c util.c

# Ex source.
SRCS+=	ex.c ex_abbrev.c ex_append.c ex_args.c ex_argv.c ex_at.c \
	ex_bang.c ex_cd.c ex_delete.c ex_digraph.c ex_display.c \
	ex_edit.c ex_equal.c ex_exit.c ex_file.c ex_global.c ex_init.c \
	ex_join.c ex_map.c ex_mark.c ex_mkexrc.c ex_move.c ex_open.c \
	ex_preserve.c ex_print.c ex_put.c ex_read.c ex_screen.c \
	ex_script.c ex_set.c ex_shell.c ex_shift.c ex_source.c ex_stop.c \
	ex_subst.c ex_tag.c ex_undo.c ex_usage.c ex_util.c ex_version.c \
	ex_visual.c ex_write.c ex_yank.c ex_z.c excmd.c filter.c

# Ex screen source.
SRCS+=	sex_confirm.c sex_get.c sex_refresh.c sex_screen.c sex_term.c \
	sex_util.c

# Vi source.
SRCS+=	getc.c v_again.c v_at.c v_ch.c v_delete.c v_ex.c v_filter.c \
	v_increment.c v_init.c v_join.c v_left.c v_mark.c v_match.c \
	v_ntext.c v_paragraph.c v_put.c v_redraw.c v_replace.c v_right.c \
	v_screen.c v_scroll.c v_search.c v_section.c v_sentence.c \
	v_shift.c v_status.c v_stop.c v_switch.c v_tag.c v_text.c \
	v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
	v_z.c v_zexit.c vcmd.c vi.c

# Vi curses screen source.
SRCS+=	svi_confirm.c svi_ex.c svi_get.c svi_line.c svi_refresh.c \
	svi_relative.c svi_screen.c svi_smap.c svi_split.c svi_util.c

# Athena widget set screen source.
SRCS+=	xaw_screen.c

DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
LDADD+=	-lcurses -ltermlib -lutil
SPECHDR=compat.h excmd.h options.h
CLEANFILES+=${SPECHDR}
LINKS=	${BINDIR}/vi ${BINDIR}/ex
LINKS+=	${BINDIR}/vi ${BINDIR}/view
MLINKS=	vi.1 ex.1 vi.1 view.1

all: ${SPECHDR}

warn:: ${SRCS}
	-(cd ${.CURDIR} && \
	    gcc -Wall -O -DDEBUG -Iobj -Ivi -Iex -I. ${.ALLSRC} \
	    -lcurses -ltermlib 2>&1 | \
	    sed -e "/warning: .*sccsid.*defined but not used/d" \
	    	-e "/warning: suggest parentheses around/d" \
	    	-e "/In function /d" \
	    	-e "/At top level:/d" \
	    	-e "/warning: .*inline call to/d" \
	    	-e "/warning: comparison is always 1 due /d") > \
		${.CURDIR}/WARN.OUT

compat.h:
	:> compat.h

options.h: options.h.stub options.c # Makefile
	rm -f options.h
	cp ${.CURDIR}/options.h.stub options.h
	chmod 664 options.h
	(echo '/^\/\* O_[0-9A-Z_]*/ {'; \
	 echo 'printf("#define %s %d\n", $$2, cnt++)'; \
	 echo 'next'; \
	 echo '}'; \
	 echo 'END {'; \
	 echo 'printf("#define O_OPTIONCOUNT %d\n", cnt)'; \
	 echo '}') > /tmp/__vi.options.h
	 awk -f /tmp/__vi.options.h ${.CURDIR}/options.c >> options.h
	 rm -f /tmp/__vi.options.h

excmd.h: excmd.h.stub excmd.c # Makefile
	rm -f excmd.h
	cp ${.CURDIR}/ex/excmd.h.stub excmd.h
	chmod 664 excmd.h
	(echo '/^\/\* C_[0-9A-Z_]* \*\/$$/ {'; \
	 echo 'printf("#define %s %d\n", $$2, cnt++)'; \
	 echo 'next'; \
	 echo '}') > /tmp/__vi.excmd.h
	 awk -f /tmp/__vi.excmd.h ${.CURDIR}/ex/excmd.c >> excmd.h
	 rm -f /tmp/__vi.excmd.h

realinstall:
	install ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    ${PROG} ${DESTDIR}${BINDIR}/vi

vi.0: vi.1 set.opt.roff
	cpp -DMANUAL -I${.CURDIR}/docs ${.CURDIR}/docs/vi.1 | \
	    sed -e '/^#/d' -e '/^$$/d' | nroff -mandoc > $@@ \
	    || ( rm -f ${.TARGET} ; false )

.include <bsd.prog.mk>

.depend: ${SPECHDR}
@


1.3
log
@build as nvi, install as vi, view, and ex
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	8.26 (Berkeley) 1/12/94
#	$Id: Makefile,v 1.2 1994/01/24 06:38:43 cgd Exp $
d10 2
a11 3
.PATH:	${.CURDIR}/ex ${.CURDIR}/sex ${.CURDIR}/vi ${.CURDIR}/svi \
	${.CURDIR}/xaw
#CLEANFILES+=nex						# cgd
d14 3
a16 3
SRCS=	ascii.c cut.c delete.c exf.c line.c log.c main.c mark.c \
	options.c options_f.c screen.c search.c seq.c recover.c \
	term.c timer.c trace.c util.c
d33 7
a39 7
SRCS+=	getc.c v_again.c v_at.c v_ch.c v_delete.c v_ex.c v_exit.c \
	v_exmode.c v_filter.c v_increment.c v_init.c v_join.c v_left.c \
	v_mark.c v_match.c v_ntext.c v_paragraph.c v_put.c v_redraw.c \
	v_replace.c v_right.c v_screen.c v_scroll.c v_search.c v_section.c \
	v_sentence.c v_shift.c v_status.c v_stop.c v_switch.c v_tag.c \
	v_text.c v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
	v_z.c vcmd.c vi.c
a47 2
#LDADD+=-pg
#DPADD+= ${LIBCURSES} ${LIBTERM}				# cgd
d50 1
a50 1
SPECHDR=excmd.h options.h
a51 1
#LINKS=	${BINDIR}/nvi ${BINDIR}/nex				# cgd
d56 1
a56 5
#all: nvi vi.0							# cgd
#	rm -f nex
#	ln nvi nex

all: ${SPECHDR}							# cgd
d70 3
d98 1
a98 1
realinstall:							# cgd
d101 5
@


1.2
log
@more Ids than you'll ever want.
@
text
@d2 1
a2 1
#	$Id$
d12 1
a12 1
CLEANFILES+=nex
d50 2
a51 1
DPADD+= ${LIBCURSES} ${LIBTERM}
d55 8
a62 1
LINKS=	${BINDIR}/nvi ${BINDIR}/nex
d64 1
a64 3
all: nvi vi.0
	rm -f nex
	ln nvi nex
d102 4
@


1.1
log
@Initial revision
@
text
@d1 2
a2 1
#	@@(#)Makefile	8.26 (Berkeley) 1/12/94
@


1.1.1.1
log
@nvi 1.03, from ftp.cs.berkeley.edu, per keith bostic's permission.
@
text
@@


1.1.1.2
log
@nvi/nex 1.11beta from bostic.
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.30 (Berkeley) 3/22/94
d4 1
d9 2
a10 2
.PATH:	${.CURDIR}/docs ${.CURDIR}/ex ${.CURDIR}/sex ${.CURDIR}/vi \
	${.CURDIR}/svi ${.CURDIR}/xaw
d14 3
a16 3
SRCS=	ascii.c cut.c delete.c exf.c intr.c line.c log.c main.c \
	mark.c options.c options_f.c put.c screen.c search.c seq.c \
	recover.c term.c timer.c trace.c util.c
d33 7
a39 7
SRCS+=	getc.c v_again.c v_at.c v_ch.c v_delete.c v_ex.c v_filter.c \
	v_increment.c v_init.c v_join.c v_left.c v_mark.c v_match.c \
	v_ntext.c v_paragraph.c v_put.c v_redraw.c v_replace.c v_right.c \
	v_screen.c v_scroll.c v_search.c v_section.c v_sentence.c \
	v_shift.c v_status.c v_stop.c v_switch.c v_tag.c v_text.c \
	v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
	v_z.c v_zexit.c vcmd.c vi.c
d51 1
a51 1
SPECHDR=compat.h excmd.h options.h
d55 1
a55 1
all: nvi docs
a70 3
compat.h:
	:> compat.h

a94 14

docs: vi.0.txt vi.0.ps vi.ref.txt vi.ref.ps
vi.0.txt: vi.1 set.opt.roff
	cpp -DMANUAL -I${.CURDIR}/docs ${.CURDIR}/docs/vi.1 | \
	    sed -e '/^#/d' -e '/^$$/d' | groff -man -Tascii > $@@
vi.0.ps: vi.1 set.opt.roff
	cpp -DMANUAL -I${.CURDIR}/docs ${.CURDIR}/docs/vi.1 | \
	    sed -e '/^#/d' -e '/^$$/d' | groff -man > $@@
vi.ref.txt: vi.ref set.opt.roff
	cpp -DREFERENCE -I${.CURDIR}/docs ${.CURDIR}/docs/vi.ref | \
	    sed -e '/^#/d' -e '/^$$/d' | groff -man -Tascii > $@@
vi.ref.ps: vi.ref set.opt.roff
	cpp -DREFERENCE -I${.CURDIR}/docs ${.CURDIR}/docs/vi.ref | \
	    sed -e '/^#/d' -e '/^$$/d' | groff -man > $@@
@


1.1.1.3
log
@new public version of nvi
@
text
@d1 1
a1 6
#	@@(#)Makefile	8.2 (Berkeley) 8/16/94
#
# This Makefile is ONLY correct for 4.4BSD style source trees.  If you're
# not using a system with that setup, it's not going to work.  Read the
# files README and PORT/README for information on building nvi for other
# systems.
d3 112
a114 2
SUBDIR= common
.include <bsd.subdir.mk>
@


1.1.1.4
log
@import of nvi 1.66
@
text
@d1 6
a6 3
#	$NetBSD$

SUBDIR=build
d8 1
@
