head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.16
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.14
	perseant-exfatfs-base:1.3
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.12
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.10
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.3.0.8
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.6
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.4
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.2.28.1
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.3.0.2
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.2.0.28
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.2.0.26
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.24
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.22
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.20
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.2.0.18
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.16
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.14
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.12
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.10
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	tls-maxphys-base:1.2
	tls-maxphys:1.2.0.8
	netbsd-7:1.2.0.6
	netbsd-7-base:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base9:1.2
	tls-earlyentropy:1.2.0.2
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2;
locks; strict;
comment	@# @;


1.3
date	2018.05.01.19.59.43;	author christos;	state Exp;
branches;
next	1.2;
commitid	10Ge8dYtIFEjeDAA;

1.2
date	2013.11.22.16.11.08;	author christos;	state Exp;
branches
	1.2.4.1
	1.2.8.1
	1.2.28.1;
next	1.1;
commitid	5fiIP7DQN4UW4iex;

1.1
date	2013.11.22.16.00.45;	author christos;	state Exp;
branches;
next	;
commitid	FAslGNZZa4Ol1iex;

1.2.4.1
date	2013.11.22.16.11.08;	author yamt;	state dead;
branches;
next	1.2.4.2;
commitid	Arqj98NAscKb9yBx;

1.2.4.2
date	2014.05.22.15.50.32;	author yamt;	state Exp;
branches;
next	;
commitid	Arqj98NAscKb9yBx;

1.2.8.1
date	2013.11.22.16.11.08;	author tls;	state dead;
branches;
next	1.2.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.2.8.2
date	2014.08.19.23.51.50;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.2.28.1
date	2018.05.02.07.20.00;	author pgoyette;	state Exp;
branches;
next	;
commitid	o3kRuNRzl9360HAA;


desc
@@


1.3
log
@Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
@
text
@#	$NetBSD: Makefile,v 1.2 2013/11/22 16:11:08 christos Exp $
#
#	@@(#)Makefile	8.29 (Berkeley) 10/19/96

.include <bsd.hostinit.mk>

.PATH:	${DIST}/catalog

CATALOG=	dutch english french german ru_RU.KOI8-R spanish swedish

VI_FILES=	${DIST}/cl/*.c ${DIST}/common/*.c \
		${DIST}/ex/*.c ${DIST}/vi/*.c
FILES=		${CATALOG}
FILESDIR=	/usr/share/nvi/catalog

HOSTPROG=	dump
SRCS=		dump.c

CLEANFILES+=	${CATALOG} english.base *.check __ck1 __ck2

realall: ${CATALOG}

${CATALOG}: ${CATALOG:S/$/.base/}
	@@echo "... $@@";							\
	rm -f $@@;							\
	if test -f $@@.base; then					\
		f=$@@.base;						\
	else								\
		f=${DIST}/catalog/$@@.base;				\
	fi;								\
	sort -u $$f |							\
	${TOOL_AWK} '{							\
		if ($$1 == 1) {						\
			print "\nMESSAGE NUMBER 1 IS NOT LEGAL";	\
			exit 1;						\
		}							\
		if (++nline > $$1) {					\
			print "DUPLICATE MESSAGE NUMBER " $$1;		\
			exit 1;						\
		}							\
		for (; nline < $$1; ++nline)				\
			print "";					\
		print $0;						\
	}' |								\
	${TOOL_SED} -e '1s/^/VI_MESSAGE_CATALOG/'			\
	    -e '/"/s/^[^"]*"//'						\
	    -e '1!s/"$$/X/' > $@@;					\
	if grep DUPLICATE $@@ > /dev/null; then				\
		grep DUPLICATE $@@;					\
	fi;								\
	if grep 'NOT LEGAL' $@@ > /dev/null; then			\
		grep 'NOT LEGAL' $@@;					\
	fi

CHK=	dutch.check english.check french.check german.check \
	ru_RU.KOI8-R.check spanish.check swedish.check
check: ${CHK}
${CHK}: ${CATALOG}
	@@echo "... $@@";							\
	f=${DIST}/catalog/`basename $@@ .check`;				\
	(echo "Unused message id's (this is okay):";			\
	${TOOL_AWK} '{							\
		while (++nline < $$1)					\
			printf "%03d\n", nline;				\
	}' < ${DIST}/catalog/$$f.base;					\
	echo =========================;					\
	echo "MISSING ERROR MESSAGES (Please add!):";			\
	${TOOL_AWK} '{print $$1}' < $$f.base | sort -u > __ck1;		\
	${TOOL_AWK} '{print $$1}' < english.base | sort -u > __ck2;	\
	comm -13 __ck1 __ck2;						\
	echo =========================;					\
	echo "Extra error messages (just delete them):";		\
	comm -23 __ck1 __ck2;						\
	echo =========================;					\
	echo "MESSAGES WITH THE SAME MESSAGE ID's (FIX!):";		\
	for j in							\
	    `${TOOL_SED} '/^$$/d' < $$f.base | sort -u |		\
	    ${TOOL_AWK} '{print $$1}' | uniq -d`; do			\
		egrep $$j $$f.base;					\
	done;								\
	echo =========================;					\
	echo "Duplicate messages, both id and message (this is okay):";	\
	${TOOL_SED} '/^$$/d' < $$f.base | sort | uniq -c |		\
	${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;			\
	echo =========================;					\
	echo "Duplicate messages, just message (this is okay):";	\
	${TOOL_SED} '/^$$/d' < $$f | sort | uniq -c |			\
	${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;			\
	echo =========================) > $@@

english.base: dump ${VI_FILES} #Makefile
	${_MKTARGET_CREATE}
	./dump ${VI_FILES} |\
	${TOOL_SED} -e '/|/!d' \
	    -e 's/|/ "/' \
	    -e 's/^"//' \
	    -e 's/\\"/"/g' |\
	sort -n > $@@

.include <bsd.hostprog.mk>
@


1.2
log
@don't install an empty file
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
d5 1
a5 3
NOMAN=		# defined

.include "../Makefile.inc"
@


1.2.28.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2018/05/01 19:59:43 christos Exp $
d5 3
a7 1
.include <bsd.hostinit.mk>
@


1.2.8.1
log
@file Makefile was added on branch tls-maxphys on 2014-08-19 23:51:50 +0000
@
text
@d1 102
@


1.2.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 102
#	$NetBSD$
#
#	@@(#)Makefile	8.29 (Berkeley) 10/19/96

NOMAN=		# defined

.include "../Makefile.inc"

.PATH:	${DIST}/catalog

CATALOG=	dutch english french german ru_RU.KOI8-R spanish swedish

VI_FILES=	${DIST}/cl/*.c ${DIST}/common/*.c \
		${DIST}/ex/*.c ${DIST}/vi/*.c
FILES=		${CATALOG}
FILESDIR=	/usr/share/nvi/catalog

HOSTPROG=	dump
SRCS=		dump.c

CLEANFILES+=	${CATALOG} english.base *.check __ck1 __ck2

realall: ${CATALOG}

${CATALOG}: ${CATALOG:S/$/.base/}
	@@echo "... $@@";							\
	rm -f $@@;							\
	if test -f $@@.base; then					\
		f=$@@.base;						\
	else								\
		f=${DIST}/catalog/$@@.base;				\
	fi;								\
	sort -u $$f |							\
	${TOOL_AWK} '{							\
		if ($$1 == 1) {						\
			print "\nMESSAGE NUMBER 1 IS NOT LEGAL";	\
			exit 1;						\
		}							\
		if (++nline > $$1) {					\
			print "DUPLICATE MESSAGE NUMBER " $$1;		\
			exit 1;						\
		}							\
		for (; nline < $$1; ++nline)				\
			print "";					\
		print $0;						\
	}' |								\
	${TOOL_SED} -e '1s/^/VI_MESSAGE_CATALOG/'			\
	    -e '/"/s/^[^"]*"//'						\
	    -e '1!s/"$$/X/' > $@@;					\
	if grep DUPLICATE $@@ > /dev/null; then				\
		grep DUPLICATE $@@;					\
	fi;								\
	if grep 'NOT LEGAL' $@@ > /dev/null; then			\
		grep 'NOT LEGAL' $@@;					\
	fi

CHK=	dutch.check english.check french.check german.check \
	ru_RU.KOI8-R.check spanish.check swedish.check
check: ${CHK}
${CHK}: ${CATALOG}
	@@echo "... $@@";							\
	f=${DIST}/catalog/`basename $@@ .check`;				\
	(echo "Unused message id's (this is okay):";			\
	${TOOL_AWK} '{							\
		while (++nline < $$1)					\
			printf "%03d\n", nline;				\
	}' < ${DIST}/catalog/$$f.base;					\
	echo =========================;					\
	echo "MISSING ERROR MESSAGES (Please add!):";			\
	${TOOL_AWK} '{print $$1}' < $$f.base | sort -u > __ck1;		\
	${TOOL_AWK} '{print $$1}' < english.base | sort -u > __ck2;	\
	comm -13 __ck1 __ck2;						\
	echo =========================;					\
	echo "Extra error messages (just delete them):";		\
	comm -23 __ck1 __ck2;						\
	echo =========================;					\
	echo "MESSAGES WITH THE SAME MESSAGE ID's (FIX!):";		\
	for j in							\
	    `${TOOL_SED} '/^$$/d' < $$f.base | sort -u |		\
	    ${TOOL_AWK} '{print $$1}' | uniq -d`; do			\
		egrep $$j $$f.base;					\
	done;								\
	echo =========================;					\
	echo "Duplicate messages, both id and message (this is okay):";	\
	${TOOL_SED} '/^$$/d' < $$f.base | sort | uniq -c |		\
	${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;			\
	echo =========================;					\
	echo "Duplicate messages, just message (this is okay):";	\
	${TOOL_SED} '/^$$/d' < $$f | sort | uniq -c |			\
	${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;			\
	echo =========================) > $@@

english.base: dump ${VI_FILES} #Makefile
	${_MKTARGET_CREATE}
	./dump ${VI_FILES} |\
	${TOOL_SED} -e '/|/!d' \
	    -e 's/|/ "/' \
	    -e 's/^"//' \
	    -e 's/\\"/"/g' |\
	sort -n > $@@

.include <bsd.hostprog.mk>
@


1.2.4.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 15:50:32 +0000
@
text
@d1 102
@


1.2.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 102
#	$NetBSD$
#
#	@@(#)Makefile	8.29 (Berkeley) 10/19/96

NOMAN=		# defined

.include "../Makefile.inc"

.PATH:	${DIST}/catalog

CATALOG=	dutch english french german ru_RU.KOI8-R spanish swedish

VI_FILES=	${DIST}/cl/*.c ${DIST}/common/*.c \
		${DIST}/ex/*.c ${DIST}/vi/*.c
FILES=		${CATALOG}
FILESDIR=	/usr/share/nvi/catalog

HOSTPROG=	dump
SRCS=		dump.c

CLEANFILES+=	${CATALOG} english.base *.check __ck1 __ck2

realall: ${CATALOG}

${CATALOG}: ${CATALOG:S/$/.base/}
	@@echo "... $@@";							\
	rm -f $@@;							\
	if test -f $@@.base; then					\
		f=$@@.base;						\
	else								\
		f=${DIST}/catalog/$@@.base;				\
	fi;								\
	sort -u $$f |							\
	${TOOL_AWK} '{							\
		if ($$1 == 1) {						\
			print "\nMESSAGE NUMBER 1 IS NOT LEGAL";	\
			exit 1;						\
		}							\
		if (++nline > $$1) {					\
			print "DUPLICATE MESSAGE NUMBER " $$1;		\
			exit 1;						\
		}							\
		for (; nline < $$1; ++nline)				\
			print "";					\
		print $0;						\
	}' |								\
	${TOOL_SED} -e '1s/^/VI_MESSAGE_CATALOG/'			\
	    -e '/"/s/^[^"]*"//'						\
	    -e '1!s/"$$/X/' > $@@;					\
	if grep DUPLICATE $@@ > /dev/null; then				\
		grep DUPLICATE $@@;					\
	fi;								\
	if grep 'NOT LEGAL' $@@ > /dev/null; then			\
		grep 'NOT LEGAL' $@@;					\
	fi

CHK=	dutch.check english.check french.check german.check \
	ru_RU.KOI8-R.check spanish.check swedish.check
check: ${CHK}
${CHK}: ${CATALOG}
	@@echo "... $@@";							\
	f=${DIST}/catalog/`basename $@@ .check`;				\
	(echo "Unused message id's (this is okay):";			\
	${TOOL_AWK} '{							\
		while (++nline < $$1)					\
			printf "%03d\n", nline;				\
	}' < ${DIST}/catalog/$$f.base;					\
	echo =========================;					\
	echo "MISSING ERROR MESSAGES (Please add!):";			\
	${TOOL_AWK} '{print $$1}' < $$f.base | sort -u > __ck1;		\
	${TOOL_AWK} '{print $$1}' < english.base | sort -u > __ck2;	\
	comm -13 __ck1 __ck2;						\
	echo =========================;					\
	echo "Extra error messages (just delete them):";		\
	comm -23 __ck1 __ck2;						\
	echo =========================;					\
	echo "MESSAGES WITH THE SAME MESSAGE ID's (FIX!):";		\
	for j in							\
	    `${TOOL_SED} '/^$$/d' < $$f.base | sort -u |		\
	    ${TOOL_AWK} '{print $$1}' | uniq -d`; do			\
		egrep $$j $$f.base;					\
	done;								\
	echo =========================;					\
	echo "Duplicate messages, both id and message (this is okay):";	\
	${TOOL_SED} '/^$$/d' < $$f.base | sort | uniq -c |		\
	${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;			\
	echo =========================;					\
	echo "Duplicate messages, just message (this is okay):";	\
	${TOOL_SED} '/^$$/d' < $$f | sort | uniq -c |			\
	${TOOL_AWK} '$$1 != 1 { print $$0 }' | sort -n;			\
	echo =========================) > $@@

english.base: dump ${VI_FILES} #Makefile
	${_MKTARGET_CREATE}
	./dump ${VI_FILES} |\
	${TOOL_SED} -e '/|/!d' \
	    -e 's/|/ "/' \
	    -e 's/^"//' \
	    -e 's/\\"/"/g' |\
	sort -n > $@@

.include <bsd.hostprog.mk>
@


1.1
log
@Add build glue and docs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2008/10/25 22:27:39 apb Exp $
d11 1
a11 2
CATALOG=	dutch english french german ru_RU.KOI8-R ru_SU.KOI8-R \
		spanish swedish
@

