head	1.38;
access;
symbols
	netbsd-11-0-RC4:1.38
	netbsd-11-0-RC3:1.38
	netbsd-11-0-RC2:1.38
	netbsd-11-0-RC1:1.38
	perseant-exfatfs-base-20250801:1.38
	netbsd-11:1.38.0.74
	netbsd-11-base:1.38
	netbsd-10-1-RELEASE:1.38
	perseant-exfatfs-base-20240630:1.38
	perseant-exfatfs:1.38.0.72
	perseant-exfatfs-base:1.38
	netbsd-8-3-RELEASE:1.38
	netbsd-9-4-RELEASE:1.38
	netbsd-10-0-RELEASE:1.38
	netbsd-10-0-RC6:1.38
	netbsd-10-0-RC5:1.38
	netbsd-10-0-RC4:1.38
	netbsd-10-0-RC3:1.38
	netbsd-10-0-RC2:1.38
	netbsd-10-0-RC1:1.38
	netbsd-10:1.38.0.70
	netbsd-10-base:1.38
	netbsd-9-3-RELEASE:1.38
	cjep_sun2x-base1:1.38
	cjep_sun2x:1.38.0.68
	cjep_sun2x-base:1.38
	cjep_staticlib_x-base1:1.38
	netbsd-9-2-RELEASE:1.38
	cjep_staticlib_x:1.38.0.66
	cjep_staticlib_x-base:1.38
	netbsd-9-1-RELEASE:1.38
	phil-wifi-20200421:1.38
	phil-wifi-20200411:1.38
	is-mlppp:1.38.0.64
	is-mlppp-base:1.38
	phil-wifi-20200406:1.38
	netbsd-8-2-RELEASE:1.38
	netbsd-9-0-RELEASE:1.38
	netbsd-9-0-RC2:1.38
	netbsd-9-0-RC1:1.38
	phil-wifi-20191119:1.38
	netbsd-9:1.38.0.62
	netbsd-9-base:1.38
	phil-wifi-20190609:1.38
	netbsd-8-1-RELEASE:1.38
	netbsd-8-1-RC1:1.38
	pgoyette-compat-merge-20190127:1.38
	pgoyette-compat-20190127:1.38
	pgoyette-compat-20190118:1.38
	pgoyette-compat-1226:1.38
	pgoyette-compat-1126:1.38
	pgoyette-compat-1020:1.38
	pgoyette-compat-0930:1.38
	pgoyette-compat-0906:1.38
	netbsd-7-2-RELEASE:1.38
	pgoyette-compat-0728:1.38
	netbsd-8-0-RELEASE:1.38
	phil-wifi:1.38.0.60
	phil-wifi-base:1.38
	pgoyette-compat-0625:1.38
	netbsd-8-0-RC2:1.38
	pgoyette-compat-0521:1.38
	pgoyette-compat-0502:1.38
	pgoyette-compat-0422:1.38
	netbsd-8-0-RC1:1.38
	pgoyette-compat-0415:1.38
	pgoyette-compat-0407:1.38
	pgoyette-compat-0330:1.38
	pgoyette-compat-0322:1.38
	pgoyette-compat-0315:1.38
	netbsd-7-1-2-RELEASE:1.38
	pgoyette-compat:1.38.0.58
	pgoyette-compat-base:1.38
	netbsd-7-1-1-RELEASE:1.38
	matt-nb8-mediatek:1.38.0.56
	matt-nb8-mediatek-base:1.38
	perseant-stdc-iso10646:1.38.0.54
	perseant-stdc-iso10646-base:1.38
	netbsd-8:1.38.0.52
	netbsd-8-base:1.38
	prg-localcount2-base3:1.38
	prg-localcount2-base2:1.38
	prg-localcount2-base1:1.38
	prg-localcount2:1.38.0.50
	prg-localcount2-base:1.38
	pgoyette-localcount-20170426:1.38
	bouyer-socketcan-base1:1.38
	pgoyette-localcount-20170320:1.38
	netbsd-7-1:1.38.0.48
	netbsd-7-1-RELEASE:1.38
	netbsd-7-1-RC2:1.38
	netbsd-7-nhusb-base-20170116:1.38
	bouyer-socketcan:1.38.0.46
	bouyer-socketcan-base:1.38
	pgoyette-localcount-20170107:1.38
	netbsd-7-1-RC1:1.38
	pgoyette-localcount-20161104:1.38
	netbsd-7-0-2-RELEASE:1.38
	localcount-20160914:1.38
	netbsd-7-nhusb:1.38.0.44
	netbsd-7-nhusb-base:1.38
	pgoyette-localcount-20160806:1.38
	pgoyette-localcount-20160726:1.38
	pgoyette-localcount:1.38.0.42
	pgoyette-localcount-base:1.38
	netbsd-7-0-1-RELEASE:1.38
	netbsd-7-0:1.38.0.40
	netbsd-7-0-RELEASE:1.38
	netbsd-7-0-RC3:1.38
	netbsd-7-0-RC2:1.38
	netbsd-7-0-RC1:1.38
	netbsd-5-2-3-RELEASE:1.38
	netbsd-5-1-5-RELEASE:1.38
	netbsd-6-0-6-RELEASE:1.38
	netbsd-6-1-5-RELEASE:1.38
	netbsd-7:1.38.0.38
	netbsd-7-base:1.38
	yamt-pagecache-base9:1.38
	yamt-pagecache-tag8:1.38
	netbsd-6-1-4-RELEASE:1.38
	netbsd-6-0-5-RELEASE:1.38
	tls-earlyentropy:1.38.0.36
	tls-earlyentropy-base:1.38
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.38
	riastradh-drm2-base3:1.38
	netbsd-6-1-3-RELEASE:1.38
	netbsd-6-0-4-RELEASE:1.38
	netbsd-5-2-2-RELEASE:1.38
	netbsd-5-1-4-RELEASE:1.38
	netbsd-6-1-2-RELEASE:1.38
	netbsd-6-0-3-RELEASE:1.38
	netbsd-5-2-1-RELEASE:1.38
	netbsd-5-1-3-RELEASE:1.38
	netbsd-6-1-1-RELEASE:1.38
	riastradh-drm2-base2:1.38
	riastradh-drm2-base1:1.38
	riastradh-drm2:1.38.0.30
	riastradh-drm2-base:1.38
	netbsd-6-1:1.38.0.34
	netbsd-6-0-2-RELEASE:1.38
	netbsd-6-1-RELEASE:1.38
	netbsd-6-1-RC4:1.38
	netbsd-6-1-RC3:1.38
	agc-symver:1.38.0.32
	agc-symver-base:1.38
	netbsd-6-1-RC2:1.38
	netbsd-6-1-RC1:1.38
	yamt-pagecache-base8:1.38
	netbsd-5-2:1.38.0.28
	netbsd-6-0-1-RELEASE:1.38
	yamt-pagecache-base7:1.38
	netbsd-5-2-RELEASE:1.38
	netbsd-5-2-RC1:1.38
	matt-nb6-plus-nbase:1.38
	yamt-pagecache-base6:1.38
	netbsd-6-0:1.38.0.26
	netbsd-6-0-RELEASE:1.38
	netbsd-6-0-RC2:1.38
	tls-maxphys:1.38.0.24
	tls-maxphys-base:1.38
	matt-nb6-plus:1.38.0.22
	matt-nb6-plus-base:1.38
	netbsd-6-0-RC1:1.38
	yamt-pagecache-base5:1.38
	yamt-pagecache-base4:1.38
	netbsd-6:1.38.0.20
	netbsd-6-base:1.38
	netbsd-5-1-2-RELEASE:1.38
	netbsd-5-1-1-RELEASE:1.38
	yamt-pagecache-base3:1.38
	yamt-pagecache-base2:1.38
	yamt-pagecache:1.38.0.2
	yamt-pagecache-base:1.38
	cherry-xenmp:1.38.0.18
	cherry-xenmp-base:1.38
	bouyer-quota2-nbase:1.38
	bouyer-quota2:1.38.0.16
	bouyer-quota2-base:1.38
	matt-mips64-premerge-20101231:1.38
	matt-nb5-mips64-premerge-20101231:1.38
	matt-nb5-pq3:1.38.0.14
	matt-nb5-pq3-base:1.38
	netbsd-5-1:1.38.0.12
	netbsd-5-1-RELEASE:1.38
	netbsd-5-1-RC4:1.38
	matt-nb5-mips64-k15:1.38
	netbsd-5-1-RC3:1.38
	netbsd-5-1-RC2:1.38
	netbsd-5-1-RC1:1.38
	netbsd-5-0-2-RELEASE:1.38
	matt-nb5-mips64-premerge-20091211:1.38
	matt-premerge-20091211:1.38
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.38
	matt-nb4-mips64-k7-u2a-k9b:1.38
	matt-nb5-mips64-u1-k1-k5:1.38
	matt-nb5-mips64:1.38.0.10
	netbsd-5-0-1-RELEASE:1.38
	jym-xensuspend-nbase:1.38
	netbsd-5-0:1.38.0.8
	netbsd-5-0-RELEASE:1.38
	netbsd-5-0-RC4:1.38
	netbsd-5-0-RC3:1.38
	netbsd-5-0-RC2:1.38
	jym-xensuspend:1.38.0.6
	jym-xensuspend-base:1.38
	netbsd-5-0-RC1:1.38
	netbsd-5:1.38.0.4
	netbsd-5-base:1.38
	matt-mips64-base2:1.38
	matt-mips64:1.36.0.30
	netbsd-4-0-1-RELEASE:1.36
	wrstuden-revivesa-base-3:1.37
	wrstuden-revivesa-base-2:1.37
	wrstuden-fixsa-newbase:1.36
	wrstuden-revivesa-base-1:1.37
	yamt-pf42-base4:1.37
	yamt-pf42-base3:1.37
	hpcarm-cleanup-nbase:1.37
	yamt-pf42-baseX:1.37
	yamt-pf42-base2:1.37
	wrstuden-revivesa:1.37.0.4
	wrstuden-revivesa-base:1.37
	yamt-pf42:1.37.0.2
	yamt-pf42-base:1.37
	keiichi-mipv6:1.36.0.28
	keiichi-mipv6-base:1.36
	matt-armv6-nbase:1.36
	matt-armv6-prevmlocking:1.36
	wrstuden-fixsa-base-1:1.36
	netbsd-4-0:1.36.0.26
	netbsd-4-0-RELEASE:1.36
	cube-autoconf:1.36.0.24
	cube-autoconf-base:1.36
	netbsd-4-0-RC5:1.36
	netbsd-4-0-RC4:1.36
	netbsd-4-0-RC3:1.36
	netbsd-4-0-RC2:1.36
	netbsd-4-0-RC1:1.36
	matt-armv6:1.36.0.22
	matt-armv6-base:1.36
	matt-mips64-base:1.36
	hpcarm-cleanup:1.36.0.20
	hpcarm-cleanup-base:1.36
	netbsd-3-1-1-RELEASE:1.36
	netbsd-3-0-3-RELEASE:1.36
	wrstuden-fixsa:1.36.0.18
	wrstuden-fixsa-base:1.36
	abandoned-netbsd-4-base:1.36
	abandoned-netbsd-4:1.36.0.12
	netbsd-3-1:1.36.0.14
	netbsd-3-1-RELEASE:1.36
	netbsd-3-0-2-RELEASE:1.36
	netbsd-3-1-RC4:1.36
	netbsd-3-1-RC3:1.36
	netbsd-3-1-RC2:1.36
	netbsd-3-1-RC1:1.36
	netbsd-4:1.36.0.16
	netbsd-4-base:1.36
	netbsd-3-0-1-RELEASE:1.36
	netbsd-3-0:1.36.0.10
	netbsd-3-0-RELEASE:1.36
	netbsd-3-0-RC6:1.36
	netbsd-3-0-RC5:1.36
	netbsd-3-0-RC4:1.36
	netbsd-3-0-RC3:1.36
	netbsd-3-0-RC2:1.36
	netbsd-3-0-RC1:1.36
	netbsd-2-0-3-RELEASE:1.36
	netbsd-2-1:1.36.0.8
	netbsd-2-1-RELEASE:1.36
	netbsd-2-1-RC6:1.36
	netbsd-2-1-RC5:1.36
	netbsd-2-1-RC4:1.36
	netbsd-2-1-RC3:1.36
	netbsd-2-1-RC2:1.36
	netbsd-2-1-RC1:1.36
	netbsd-2-0-2-RELEASE:1.36
	netbsd-3:1.36.0.6
	netbsd-3-base:1.36
	netbsd-2-0-1-RELEASE:1.36
	netbsd-2:1.36.0.4
	netbsd-2-base:1.36
	netbsd-2-0-RELEASE:1.36
	netbsd-2-0-RC5:1.36
	netbsd-2-0-RC4:1.36
	netbsd-2-0-RC3:1.36
	netbsd-2-0-RC2:1.36
	netbsd-2-0-RC1:1.36
	netbsd-2-0:1.36.0.2
	netbsd-2-0-base:1.36
	netbsd-1-6-PATCH002-RELEASE:1.32
	netbsd-1-6-PATCH002:1.32
	netbsd-1-6-PATCH002-RC4:1.32
	netbsd-1-6-PATCH002-RC3:1.32
	netbsd-1-6-PATCH002-RC2:1.32
	netbsd-1-6-PATCH002-RC1:1.32
	netbsd-1-6-PATCH001:1.32
	netbsd-1-6-PATCH001-RELEASE:1.32
	netbsd-1-6-PATCH001-RC3:1.32
	netbsd-1-6-PATCH001-RC2:1.32
	netbsd-1-6-PATCH001-RC1:1.32
	fvdl_fs64_base:1.33
	netbsd-1-6-RELEASE:1.32
	netbsd-1-6-RC3:1.32
	netbsd-1-6-RC2:1.32
	netbsd-1-6-RC1:1.32
	netbsd-1-6:1.32.0.2
	netbsd-1-6-base:1.32
	netbsd-1-5-PATCH003:1.27.4.1
	netbsd-1-5-PATCH002:1.27.4.1
	netbsd-1-5-PATCH001:1.27.4.1
	netbsd-1-5-RELEASE:1.27.4.1
	netbsd-1-5-BETA2:1.27.4.1
	netbsd-1-5-BETA:1.27.4.1
	netbsd-1-4-PATCH003:1.22
	netbsd-1-5-ALPHA2:1.27
	netbsd-1-5:1.27.0.4
	netbsd-1-5-base:1.27
	minoura-xpg4dl:1.27.0.2
	minoura-xpg4dl-base:1.27
	netbsd-1-4-PATCH002:1.22
	wrstuden-devbsize-19991221:1.25
	wrstuden-devbsize:1.25.0.4
	wrstuden-devbsize-base:1.25
	comdex-fall-1999:1.25.0.2
	comdex-fall-1999-base:1.25
	netbsd-1-4-PATCH001:1.22
	netbsd-1-4-RELEASE:1.22
	netbsd-1-4:1.22.0.2
	netbsd-1-4-base:1.22
	netbsd-1-3-PATCH003:1.20
	netbsd-1-3-PATCH003-CANDIDATE2:1.20
	netbsd-1-3-PATCH003-CANDIDATE1:1.20
	netbsd-1-3-PATCH003-CANDIDATE0:1.20
	netbsd-1-3-PATCH002:1.20
	netbsd-1-3-PATCH001:1.20
	netbsd-1-3-RELEASE:1.20
	netbsd-1-3-BETA:1.20
	netbsd-1-3:1.20.0.2
	netbsd-1-3-base:1.20
	netbsd-1-2-PATCH001:1.15
	lite-2:1.1.1.2
	netbsd-1-2-RELEASE:1.15
	netbsd-1-2-BETA:1.15
	netbsd-1-2-base:1.15
	netbsd-1-2:1.15.0.4
	netbsd-1-1-PATCH001:1.13
	netbsd-1-1-RELEASE:1.13
	netbsd-1-1:1.13.0.2
	netbsd-1-1-base:1.13
	lite-1:1.1.1.2
	CSRG:1.1.1
	netbsd-1-0-PATCH06:1.10
	netbsd-1-0-PATCH05:1.10
	netbsd-1-0-PATCH04:1.10
	netbsd-1-0-PATCH03:1.10
	netbsd-1-0-PATCH02:1.10
	netbsd-1-0-PATCH1:1.10
	netbsd-1-0-PATCH0:1.10
	netbsd-1-0-RELEASE:1.10
	netbsd-1-0:1.10.0.2
	netbsd-1-0-base:1.10
	netbsd-0-9-RELEASE:1.5
	netbsd-0-9-BETA:1.5
	netbsd-0-9-ALPHA2:1.5
	netbsd-0-9-ALPHA:1.5
	netbsd-0-9:1.5.0.2
	netbsd-0-9-base:1.5
	netbsd-0-8:1.3
	netbsd-alpha-1:1.3
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.38
date	2008.09.26.18.23.09;	author apb;	state Exp;
branches;
next	1.37;

1.37
date	2008.03.21.21.09.48;	author reed;	state Exp;
branches;
next	1.36;

1.36
date	2003.10.21.10.01.19;	author lukem;	state Exp;
branches;
next	1.35;

1.35
date	2003.10.19.04.45.01;	author lukem;	state Exp;
branches;
next	1.34;

1.34
date	2003.10.19.01.01.44;	author lukem;	state Exp;
branches;
next	1.33;

1.33
date	2002.10.22.16.14.04;	author drochner;	state Exp;
branches;
next	1.32;

1.32
date	2002.01.30.19.41.39;	author tv;	state Exp;
branches;
next	1.31;

1.31
date	2001.10.20.09.33.39;	author proff;	state Exp;
branches;
next	1.30;

1.30
date	2000.12.30.17.51.26;	author sommerfeld;	state Exp;
branches;
next	1.29;

1.29
date	2000.08.17.16.54.28;	author abs;	state Exp;
branches;
next	1.28;

1.28
date	2000.08.17.16.48.52;	author abs;	state Exp;
branches;
next	1.27;

1.27
date	2000.02.06.11.59.29;	author pooka;	state Exp;
branches
	1.27.4.1;
next	1.26;

1.26
date	2000.01.23.22.10.52;	author mycroft;	state Exp;
branches;
next	1.25;

1.25
date	99.09.21.16.34.51;	author tron;	state Exp;
branches;
next	1.24;

1.24
date	99.09.12.10.15.46;	author hwr;	state Exp;
branches;
next	1.23;

1.23
date	99.08.04.22.45.09;	author thorpej;	state Exp;
branches;
next	1.22;

1.22
date	99.02.13.02.54.21;	author lukem;	state Exp;
branches;
next	1.21;

1.21
date	98.09.29.07.33.21;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	97.10.10.13.04.33;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	97.05.07.07.15.35;	author mycroft;	state Exp;
branches;
next	1.18;

1.18
date	97.03.24.22.15.43;	author christos;	state Exp;
branches;
next	1.17;

1.17
date	96.12.23.01.14.34;	author cgd;	state Exp;
branches;
next	1.16;

1.16
date	96.10.18.02.46.35;	author thorpej;	state Exp;
branches;
next	1.15;

1.15
date	96.02.29.00.21.16;	author jtc;	state Exp;
branches;
next	1.14;

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

1.13
date	95.06.26.21.59.39;	author pk;	state Exp;
branches;
next	1.12;

1.12
date	95.04.22.07.19.03;	author cgd;	state Exp;
branches;
next	1.11;

1.11
date	95.03.23.08.28.33;	author cgd;	state Exp;
branches;
next	1.10;

1.10
date	94.02.10.02.31.32;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	94.01.24.18.46.59;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	94.01.04.21.40.31;	author pk;	state Exp;
branches;
next	1.7;

1.7
date	93.09.30.23.57.08;	author jtc;	state Exp;
branches;
next	1.6;

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

1.5
date	93.07.18.19.24.01;	author mycroft;	state Exp;
branches;
next	1.4;

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

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

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

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

1.27.4.1
date	2000.08.17.18.49.22;	author abs;	state Exp;
branches;
next	;

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

1.1.1.2
date	95.03.21.15.50.02;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.38
log
@Build strfile both as a host tool and as an installed program:
* in games/fortune/strfile/Makefile, build strfile as a
  regular program instead of as a host tool;
* add tools/strfile directory to build strfile as a host tool;
* in tools/Makefile, add strfile to SUBDIR list;
* in BSD.*.mk, define TOOL_STRFILE variable;
* in games/fortune/datfiles/Makefile, use TOOL_STRFILE when creating
  databases at build time;
* in distrib/sets/lists/games/mi, mention usr/games/strfile.
@
text
@#	$NetBSD: Makefile,v 1.37 2008/03/21 21:09:48 reed Exp $
#	@@(#)Makefile	8.2 (Berkeley) 4/19/94

.include <bsd.own.mk>			# for INSTALL_OFFENSIVE_FORTUNES

SRCFILES=	fortunes fortunes2 startrek zippy unamerican-o limerick \
		netbsd farber netbsd-tips
DATFILES=	fortunes.dat fortunes2.dat startrek.dat zippy.dat \
		fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat \
		limerick.dat limerick-o limerick-o.dat unamerican-o \
		unamerican-o.dat netbsd.dat netbsd-o netbsd-o.dat \
		farber.dat netbsd-tips.dat

# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
# "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
# IN bsd.own.mk OR /etc/mk.conf.

INSTALL_OFFENSIVE_FORTUNES?=	YES
.if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
TYPE=		real
.else
TYPE=		fake
.endif

CLEANFILES+=${DATFILES}

STRFILE=${TOOL_STRFILE}

.if ${MKSHARE} != "no"
FILES=${SRCFILES} ${DATFILES}
FILESDIR=/usr/share/games/fortune
.endif

realall: ${DATFILES}

# Normal fortunes: build directly from data files.

fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat farber.dat netbsd-tips.dat:
	${_MKTARGET_CREATE}
	${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
fortunes.dat:	fortunes
fortunes2.dat:	fortunes2
startrek.dat:	startrek
zippy.dat:	zippy
limerick.dat:	limerick
netbsd.dat:	netbsd
farber.dat:	farber
netbsd-tips.dat:	netbsd-tips

# Obscene fortunes: we have to build source and data files

fortunes-o: fortunes-o.${TYPE}
	${_MKTARGET_CREATE}
	tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
fortunes-o.dat: fortunes-o
	${_MKTARGET_CREATE}
	${STRFILE} -rsx ${.ALLSRC} ${.TARGET}

fortunes2-o: fortunes2-o.${TYPE}
	${_MKTARGET_CREATE}
	tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
fortunes2-o.dat: fortunes2-o
	${_MKTARGET_CREATE}
	${STRFILE} -rsx ${.ALLSRC} ${.TARGET}

limerick-o: limerick-o.${TYPE}
	${_MKTARGET_CREATE}
	tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
limerick-o.dat: limerick-o
	${_MKTARGET_CREATE}
	${STRFILE} -rsx ${.ALLSRC} ${.TARGET}

unamerican-o: unamerican-o.${TYPE}
	${_MKTARGET_CREATE}
	tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
unamerican-o.dat: unamerican-o
	${_MKTARGET_CREATE}
	${STRFILE} -rsx ${.ALLSRC} ${.TARGET}

netbsd-o: netbsd-o.${TYPE}
	${_MKTARGET_CREATE}
	tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
netbsd-o.dat: netbsd-o
	${_MKTARGET_CREATE}
	${STRFILE} -rsx ${.ALLSRC} ${.TARGET}


.include <bsd.prog.mk>
@


1.37
log
@Add "netbsd-tips" fortune database with 23 initial fortunes --
actually hints or suggestions or tips on using NetBSD.
Please share your brief NetBSD usage tips.
If you want to discuss or share suggestions, have a look
at http://wiki.netbsd.se/netbsd-tips wiki page.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2003/10/21 10:01:19 lukem Exp $
d27 1
a27 2
STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR}
STRFILE=${STRFILEDIR}/strfile
@


1.36
log
@Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2003/10/19 04:45:01 lukem Exp $
d7 1
a7 1
		netbsd farber
d12 1
a12 1
		farber.dat
d39 1
a39 1
fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat farber.dat:
d49 1
@


1.35
log
@rework to use the newer _MKMSGCREATE (et al) macros
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2003/10/19 01:01:44 lukem Exp $
d40 1
a40 2
	${_MKMSGCREATE}
	${_MKCMD}\
d53 1
a53 2
	${_MKMSGCREATE}
	${_MKCMD}\
d56 1
a56 2
	${_MKMSGCREATE}
	${_MKCMD}\
d60 1
a60 2
	${_MKMSGCREATE}
	${_MKCMD}\
d63 1
a63 2
	${_MKMSGCREATE}
	${_MKCMD}\
d67 1
a67 2
	${_MKMSGCREATE}
	${_MKCMD}\
d70 1
a70 2
	${_MKMSGCREATE}
	${_MKCMD}\
d74 1
a74 2
	${_MKMSGCREATE}
	${_MKCMD}\
d77 1
a77 2
	${_MKMSGCREATE}
	${_MKCMD}\
d81 1
a81 2
	${_MKMSGCREATE}
	${_MKCMD}\
d84 1
a84 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.34
log
@Support MAKEVERBOSE.  (Some host tools still generate verbose runtime messages)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2002/10/22 16:14:04 drochner Exp $
d40 1
a40 1
	${_MKMSG} " create  ${.TARGET}"
d54 1
a54 1
	${_MKMSG} " create  ${.TARGET}"
d58 1
a58 1
	${_MKMSG} " create  ${.TARGET}"
d63 1
a63 1
	${_MKMSG} " create  ${.TARGET}"
d67 1
a67 1
	${_MKMSG} " create  ${.TARGET}"
d72 1
a72 1
	${_MKMSG} " create  ${.TARGET}"
d76 1
a76 1
	${_MKMSG} " create  ${.TARGET}"
d81 1
a81 1
	${_MKMSG} " create  ${.TARGET}"
d85 1
a85 1
	${_MKMSG} " create  ${.TARGET}"
d90 1
a90 1
	${_MKMSG} " create  ${.TARGET}"
d94 1
a94 1
	${_MKMSG} " create  ${.TARGET}"
@


1.33
log
@fix duplicate limerick-o in CLEANFILES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2002/01/30 19:41:39 tv Exp $
d40 2
d54 2
d58 2
d63 2
d67 2
d72 2
d76 2
d81 2
d85 2
d90 2
d94 2
@


1.32
log
@Don't put [] around the strings passed to tr -- those can be interpreted
by shells.  Just quote 'em.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2001/10/20 09:33:39 proff Exp $
d25 1
a25 1
CLEANFILES+=${DATFILES} limerick-o
@


1.31
log
@Fortune is not moribund.

Add Farberisms from Prof. Dave Farber.

From: David Farber <dave@@farber.net>
To: proff@@iq.org (Julian Assange)
Date: Sat, 20 Oct 2001 03:29:08 -0400
Subject: Re: farberisms

Fine with me

At 02:27 PM 10/20/2001 +1000, you wrote:


>Hi Dave,
>
>I've just come accross your list of `Farberisms', which had me in
>stiches. As these are deliciously `fortune'esqe, I'd like to add
>them to the NetBSD distribution. Do you have any objections?
>
>Cheers,
>Julian.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2000/12/30 17:51:26 sommerfeld Exp $
d52 1
a52 1
	tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
d57 1
a57 1
	tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
d62 1
a62 1
	tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
d67 1
a67 1
	tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
d72 1
a72 1
	tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
@


1.30
log
@${PRINTOBJDIR}ify
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2000/08/17 16:54:28 abs Exp $
d7 1
a7 1
		netbsd
d11 2
a12 1
		unamerican-o.dat netbsd.dat netbsd-o netbsd-o.dat
d39 1
a39 1
fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat:
d47 1
@


1.29
log
@If we install limerick-o.dat, we should also install limerick-o to make it
usable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2000/08/17 16:48:52 abs Exp $
d26 2
a27 2
STRFILE!=cd $(.CURDIR)/../strfile; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/strfile\n" | ${MAKE} -s -f-
@


1.28
log
@Split netbsd fortunes into offensive and non offensive.
Split could be considered somewhat arbitrary.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2000/02/06 11:59:29 pooka Exp $
d10 2
a11 2
		limerick.dat limerick-o.dat unamerican-o unamerican-o.dat \
		netbsd.dat netbsd-o netbsd-o.dat
@


1.27
log
@Add NetBSD slogans for fortune database.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2000/01/23 22:10:52 mycroft Exp $
d11 1
a11 1
		netbsd.dat
d67 5
@


1.27.4.1
log
@Fix offensive limerick fortune install, and split offensive netbsd
fortunes into appropriate netbsd-o file, pullup:
	basedir/games/fortune/datfiles/Makefile         1.28-1.29
	basedir/games/fortune/datfiles/netbsd           1.8-1.10
	basedir/games/fortune/datfiles/netbsd-o.real    new
	basedir/games/fortune/datfiles/netbsd-o.real    new
	basesrc/distrib/sets/lists/games/mi             1.23
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2000/08/17 16:54:28 abs Exp $
d10 2
a11 2
		limerick.dat limerick-o limerick-o.dat unamerican-o \
		unamerican-o.dat netbsd.dat netbsd-o netbsd-o.dat
a66 5
	${STRFILE} -rsx ${.ALLSRC} ${.TARGET}

netbsd-o: netbsd-o.${TYPE}
	tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
netbsd-o.dat: netbsd-o
@


1.26
log
@More .mk file fallout.  *sigh*
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 1999/09/21 16:34:51 tron Exp $
d6 2
a7 1
SRCFILES=	fortunes fortunes2 startrek zippy unamerican-o limerick
d10 2
a11 1
		limerick.dat limerick-o.dat unamerican-o unamerican-o.dat 
d38 1
a38 1
fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat:
d45 1
@


1.25
log
@Remove generated file "limerick-o" in "clean" target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 1999/09/12 10:15:46 hwr Exp $
d32 1
a32 1
all: ${DATFILES}
@


1.24
log
@Split limericks into "normal" and "offensive" ones.
Fixes PR 6202 by Matthias Grutzeck <grut@@teco.edu>.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 1999/08/04 22:45:09 thorpej Exp $
d22 1
a22 1
CLEANFILES+=${DATFILES}
@


1.23
log
@Fortunes from those Unamerican Activities bumper stickers you see on
mountain bikes owned by Gen-X'ers.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1999/02/13 02:54:21 lukem Exp $
d6 1
a6 1
SRCFILES=	fortunes fortunes2 startrek zippy unamerican
d9 1
a9 1
		limerick limerick.dat unamerican unamerican.dat
d36 1
a36 1
fortunes.dat fortunes2.dat startrek.dat zippy.dat:
d42 1
d56 1
a56 1
limerick: limerick.${TYPE}
d58 1
a58 1
limerick.dat: limerick
d61 1
a61 1
unamerican: unamerican.${TYPE}
d63 1
a63 1
unamerican.dat: unamerican
@


1.22
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1998/09/29 07:33:21 lukem Exp $
d6 1
a6 1
SRCFILES=	fortunes fortunes2 startrek zippy
d9 1
a9 1
		limerick limerick.dat
d58 5
@


1.21
log
@don't install in /usr/share if NOSHARE is defined
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 1997/10/10 13:04:33 lukem Exp $
d27 1
a27 1
.if !defined(NOSHARE)
@


1.20
log
@WARNSify
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1997/05/07 07:15:35 mycroft Exp $
d27 1
d30 1
@


1.19
log
@Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1997/03/24 22:15:43 christos Exp $
d11 1
a11 1
# TO AVOID INSTALLIND THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
@


1.18
log
@- Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1996/12/23 01:14:34 cgd Exp $
d25 1
a25 2
	printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | \
	${MAKE} -r -s -f - xxx | grep strfile
@


1.17
log
@Clean this up, and be more consistent:
* Have 'fake' options for all offensive fortune files (fortunes2-o and
  limerick moved to fortunes2-o.real and limerick.real via repository copy).
* build all offensive fortune data files, etc., in the same way.
* Have installation of offensive fortunes controlled by one make variable.
  To disable build/install of offensive fortunes, set
  INSTALL_OFFENSIVE_FORTUNES to anything other than "YES" on the make
  command line, in bsd.own.mk, or in /etc/mk.conf or your ${MAKECONF} file.
  (If changing the setting, you should 'make clean' here and rebuild
  the fortunes before installing.)
* Don't use variables that bsd.prog.mk thinks have certain meanings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1996/10/18 02:46:35 thorpej Exp $
d28 3
a31 6

install:
	(cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${SRCFILES} ${DESTDIR}/usr/share/games/fortune)
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${DATFILES} ${DESTDIR}/usr/share/games/fortune
@


1.16
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1996/02/29 00:21:16 jtc Exp $
d4 1
a4 11
SRCS=	fortunes fortunes2 startrek zippy
BLDS=	fortunes.dat fortunes2.dat startrek.dat zippy.dat \
	fortunes-o fortunes-o.dat

# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
# LINES AND COMMENT OUT THE FOURTH LINE.

# THE THREE LINES
SRCS+=	fortunes2-o limerick
BLDS+=	fortunes2-o.dat limerick.dat
TYPE=	real
d6 15
a20 2
# THE FOURTH LINE
#TYPE=	fake
d22 1
a22 1
CLEANFILES+=${BLDS}
d28 1
a28 1
all: ${BLDS}
d30 1
a30 1
install: ${SRCS} ${BLDS}
d32 3
a34 3
	    ${SRCS} ${DESTDIR}/usr/share/games/fortune)
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
	    ${DESTDIR}/usr/share/games/fortune
d36 3
a38 1
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
d40 6
d47 2
d50 1
a50 1
	${STRFILE} -rsx fortunes-o ${.TARGET}
d52 6
a57 1
fortunes-o: fortunes-o.${TYPE}
d59 3
@


1.15
log
@Use tr instead of caesar to generate fortunes-o
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1995/10/22 21:06:40 christos Exp $
d28 1
a28 1
	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
d30 1
a30 1
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
@


1.14
log
@Parallel make fixes
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1995/06/26 21:59:39 pk Exp $
d40 1
a40 1
	/usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}
@


1.13
log
@Use `install -c'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1995/04/22 07:19:03 cgd Exp $
d22 2
a23 1
	printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
@


1.12
log
@clean more cruft; fix up to build the way CSRG now intends
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1995/03/23 08:28:33 cgd Exp $
d29 1
a29 1
	install -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
@


1.11
log
@merge with Lite, new RCS id conventions, etc.
@
text
@d1 1
a1 1
#	$NetBSD$
d38 2
a39 5
#fortunes-o: fortunes-o.${TYPE}
#	/usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}

fortunes-o: fortunes-o.${TYPE}.rot13
	cat < ${.ALLSRC} > ${.TARGET}
@


1.10
log
@kiil bogus install -d's
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	5.2 (Berkeley) 5/6/91
#	$Id: Makefile,v 1.9 1994/01/24 18:46:59 cgd Exp $
d4 3
a6 10
#
# set `OBSCENE' to "real" to have obscene fortunes installed,
# fake to have a note stating that they're not installed
# isntalled in their place
#
OBSCENE=real

NORMDAT= fortunes.dat startrek.dat zippy.dat
OBSDAT=	fortunes-o.dat
DATFILES= ${NORMDAT} ${OBSDAT}
d8 12
a19 1
CLEANFILES+=${DATFILES}
d24 1
a24 1
all: ${DATFILES}
d26 4
a29 2
install:
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
a30 5
	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${OBSDAT:R}.${OBSCENE}.rot13 \
		${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
d32 8
a39 2
fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
	${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
d41 2
a42 2
fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
	${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
@


1.9
log
@fix 'make' biff.  from Roland McGrath
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8 1994/01/04 21:40:31 pk Exp $
a22 1
	@@install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/games/fortune
@


1.8
log
@Use .OBJDIR for auxiliary programs.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1993/09/30 23:57:08 jtc Exp $
d18 1
a18 1
	printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | make -r -s -f - xxx
@


1.7
log
@Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1993/08/01 05:45:27 mycroft Exp $
d17 3
d33 1
a33 2
	${.CURDIR}/../strfile/obj/strfile -rsx \
	    ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
d36 1
a36 2
	${.CURDIR}/../strfile/obj/strfile -rs \
	    ${.CURDIR}/${.TARGET:R} ${.TARGET}
@


1.6
log
@Add RCS identifiers.
@
text
@d2 1
a2 1
#	$Id: $
d20 1
a20 8
	@@if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
                /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
                mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
                chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
                chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
        else \
                true ; \
        fi
@


1.5
log
@Use ${COPY}, not -c for install.
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.2 (Berkeley) 5/6/91
@


1.4
log
@build datfiles at make time, not at install time
@
text
@d27 1
a27 1
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
@


1.3
log
@fix various install problems.
@
text
@d16 3
a18 1
install: ${DATFILES}
@


1.2
log
@fixed makefile so it doesn't need to write to dir on install and doesn't
need symlink
@
text
@d10 4
a13 1
DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat
d17 9
a25 1
	install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
d27 5
@


1.1
log
@Initial revision
@
text
@d3 7
a13 2
	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${DATFILES:R} ${DESTDIR}/usr/share/games/fortune)
d17 1
a17 1
fortunes-o.dat: ${.TARGET:R}
d19 1
a19 1
	    ${.CURDIR}/${.TARGET:R} ${.TARGET}
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@


1.1.1.2
log
@from Lite
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.2 (Berkeley) 4/19/94
d3 2
a4 3
SRCS=	fortunes fortunes2 startrek zippy
BLDS=	fortunes.dat fortunes2.dat startrek.dat zippy.dat \
	fortunes-o fortunes-o.dat
d6 1
a6 14
# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
# LINES AND COMMENT OUT THE FOURTH LINE.

# THE THREE LINES
SRCS+=	fortunes2-o limerick
BLDS+=	fortunes2-o.dat limerick.dat
TYPE=	real

# THE FOURTH LINE
#TYPE=	fake

CLEANFILES+=${BLDS}

install: ${SRCS} ${BLDS}
d8 2
a9 2
	    ${SRCS} ${DESTDIR}/usr/share/games/fortune)
	install -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
d12 5
a16 1
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
a18 6

fortunes-o.dat: fortunes-o
	${.CURDIR}/../strfile/obj/strfile -rsx fortunes-o ${.TARGET}

fortunes-o: fortunes-o.${TYPE}
	/usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}
@
