#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet
# at http://www.illumos.org/license/CDDL.
#

#
# Copyright 2011, Richard Lowe
# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
# Copyright 2014 Garrett D'Amore <garrett@damore.org>
#

include		$(SRC)/Makefile.master

MANSECT= 	1

MANFILES=	acctcom.1			\
	 	adb.1				\
	 	addbib.1			\
	 	alias.1				\
	 	allocate.1			\
	 	amt.1				\
	 	appcert.1			\
	 	apptrace.1			\
	 	apropos.1			\
	 	ar.1				\
	 	arch.1				\
	 	asa.1				\
	 	at.1				\
	 	atq.1				\
	 	atrm.1				\
	 	audioconvert.1			\
	 	audioctl.1			\
	 	audioplay.1			\
	 	audiorecord.1			\
	 	audiotest.1			\
	 	auths.1				\
	 	awk.1				\
	 	banner.1			\
	 	basename.1			\
	 	bc.1				\
	 	bdiff.1				\
	 	break.1				\
	 	builtin.1			\
	 	cal.1				\
	 	calendar.1			\
	 	cancel.1			\
	 	cat.1				\
	 	cd.1				\
	 	cdrw.1				\
	 	checknr.1			\
	 	chgrp.1				\
	 	chkey.1				\
	 	chmod.1				\
	 	chown.1				\
	 	ckdate.1			\
	 	ckgid.1				\
	 	ckint.1				\
	 	ckitem.1			\
	 	ckkeywd.1			\
	 	ckpath.1			\
	 	ckrange.1			\
	 	ckstr.1				\
	 	cksum.1				\
	 	cktime.1			\
	 	ckuid.1				\
	 	ckyorn.1			\
	 	clear.1				\
	 	cmp.1				\
	 	col.1				\
	 	comm.1				\
	 	command.1			\
	 	compress.1			\
	 	cp.1				\
	 	cpio.1				\
	 	cputrack.1			\
	 	crle.1				\
	 	crontab.1			\
	 	crypt.1				\
	 	csh.1				\
	 	csplit.1			\
	 	ctags.1				\
	 	ctrun.1				\
	 	ctstat.1			\
	 	ctwatch.1			\
	 	cut.1				\
	 	date.1				\
	 	dc.1				\
	 	deallocate.1			\
	 	deroff.1			\
	 	dhcpinfo.1			\
	 	diff.1				\
	 	diff3.1				\
	 	diffmk.1			\
	 	digest.1			\
	 	dircmp.1			\
	 	dis.1				\
	 	disown.1			\
	 	dispgid.1			\
	 	dispuid.1			\
	 	dos2unix.1			\
	 	download.1			\
	 	dpost.1				\
	 	du.1				\
	 	dump.1				\
	 	dumpcs.1			\
	 	echo.1				\
	 	ed.1				\
	 	egrep.1				\
	 	eject.1				\
	 	elfdump.1			\
	 	elfedit.1			\
	 	elfsign.1			\
	 	elfwrap.1			\
	 	enable.1			\
	 	encrypt.1			\
	 	enhance.1			\
	 	env.1				\
	 	eqn.1				\
	 	exec.1				\
	 	exit.1				\
	 	expand.1			\
	 	expr.1				\
	 	exstr.1				\
	 	factor.1			\
	 	fdformat.1			\
	 	fgrep.1				\
	 	file.1				\
	 	filesync.1			\
	 	find.1				\
	 	finger.1			\
	 	fmt.1				\
	 	fmtmsg.1			\
	 	fold.1				\
	 	ftp.1				\
	 	gcore.1				\
	 	gencat.1			\
	 	genmsg.1			\
	 	getconf.1			\
	 	getfacl.1			\
	 	getlabel.1			\
	 	getopt.1			\
	 	getoptcvt.1			\
	 	getopts.1			\
	 	gettext.1			\
	 	gettxt.1			\
	 	getzonepath.1			\
	 	glob.1				\
	 	gprof.1				\
	 	grep.1				\
	 	groups.1			\
	 	hash.1				\
	 	head.1				\
	 	history.1			\
	 	hostid.1			\
	 	hostname.1			\
	 	iconv.1				\
	 	indxbib.1			\
	 	Intro.1				\
	 	ipcrm.1				\
	 	ipcs.1				\
	 	isainfo.1			\
	 	isalist.1			\
	 	jobs.1				\
	 	join.1				\
	 	kbd.1				\
	 	kdestroy.1			\
	 	keylogin.1			\
	 	keylogout.1			\
	 	kill.1				\
	 	kinit.1				\
	 	klist.1				\
	 	kmdb.1				\
	 	kmfcfg.1			\
	 	kpasswd.1			\
	 	krb5-config.1			\
	 	ksh93.1				\
	 	ktutil.1			\
		kvmstat.1			\
	 	lari.1				\
	 	last.1				\
	 	lastcomm.1			\
	 	ld.1				\
	 	ldap.1				\
	 	ldapdelete.1			\
	 	ldaplist.1			\
	 	ldapmodify.1			\
	 	ldapmodrdn.1			\
	 	ldapsearch.1			\
	 	ldd.1				\
	 	ld.so.1.1			\
	 	let.1				\
	 	lex.1				\
	 	lgrpinfo.1			\
	 	limit.1				\
	 	line.1				\
	 	list_devices.1			\
	 	listusers.1			\
	 	ln.1				\
	 	loadkeys.1			\
	 	locale.1			\
	 	localedef.1			\
	 	logger.1			\
	 	login.1				\
	 	logname.1			\
	 	logout.1			\
	 	look.1				\
	 	lookbib.1			\
	 	lorder.1			\
	 	lp.1				\
	 	lpstat.1			\
	 	ls.1				\
	 	m4.1				\
	 	mac.1				\
	 	mach.1				\
	 	madv.so.1.1			\
	 	mail.1				\
	 	mailcompat.1			\
	 	mailq.1				\
	 	mailstats.1			\
	 	mailx.1				\
		make.1				\
	 	makekey.1			\
	 	man.1				\
	 	mandoc.1			\
	 	mconnect.1			\
	 	mcs.1				\
	 	mdb.1				\
	 	mesg.1				\
	 	mkdir.1				\
	 	mkmsgs.1			\
	 	mktemp.1			\
	 	moe.1				\
	 	more.1				\
	 	mpss.so.1.1			\
	 	msgcc.1				\
	 	msgcpp.1			\
	 	msgcvt.1			\
	 	msgfmt.1			\
	 	msggen.1			\
	 	msgget.1			\
	 	mt.1				\
	 	mv.1				\
	 	nawk.1				\
	 	nc.1				\
	 	nca.1				\
	 	ncab2clf.1			\
	 	ncakmod.1			\
	 	newform.1			\
	 	newgrp.1			\
	 	news.1				\
	 	newtask.1			\
	 	nice.1				\
	 	nl.1				\
	 	nm.1				\
	 	nohup.1				\
	 	nroff.1				\
	 	od.1				\
	 	on.1				\
	 	optisa.1			\
	 	pack.1				\
	 	pagesize.1			\
	 	pargs.1				\
	 	passwd.1			\
	 	paste.1				\
	 	pathchk.1			\
	 	pax.1				\
	 	pfexec.1			\
	 	pg.1				\
	 	pgrep.1				\
	 	pkginfo.1			\
	 	pkgmk.1				\
	 	pkgparam.1			\
	 	pkgproto.1			\
	 	pkgtrans.1			\
	 	pktool.1			\
	 	plabel.1			\
	 	plgrp.1				\
	 	plimit.1			\
	 	pmadvise.1			\
	 	pmap.1				\
	 	postio.1			\
	 	postprint.1			\
	 	postreverse.1			\
	 	ppgsz.1				\
	 	ppriv.1				\
	 	pr.1				\
	 	praliases.1			\
	 	prctl.1				\
	 	preap.1				\
	 	prex.1				\
	 	print.1				\
	 	printf.1			\
	 	priocntl.1			\
	 	proc.1				\
	 	prof.1				\
	 	profiles.1			\
	 	projects.1			\
	 	ps.1				\
	 	ptree.1				\
	 	pvs.1				\
	 	pwd.1				\
	 	ranlib.1			\
	 	rcapstat.1			\
	 	rcp.1				\
	 	rdist.1				\
	 	read.1				\
	 	readonly.1			\
	 	refer.1				\
	 	regcmp.1			\
	 	renice.1			\
	 	rev.1				\
	 	rlogin.1			\
	 	rm.1				\
	 	rmformat.1			\
	 	rmmount.1			\
	 	roffbib.1			\
	 	roles.1				\
	 	rpcgen.1			\
	 	rsh.1				\
	 	runat.1				\
	 	rup.1				\
	 	ruptime.1			\
	 	rusers.1			\
	 	rwho.1				\
	 	sar.1				\
		scp.sunssh.1		\
	 	script.1			\
	 	sdiff.1				\
	 	sed.1				\
	 	set.1				\
	 	setfacl.1			\
	 	setlabel.1			\
	 	setpgrp.1			\
		sftp.sunssh.1		\
	 	shcomp.1			\
	 	shell_builtins.1		\
	 	shift.1				\
	 	size.1				\
	 	sleep.1				\
	 	smbutil.1			\
	 	soelim.1			\
	 	sort.1				\
	 	sortbib.1			\
	 	sotruss.1			\
	 	spell.1				\
	 	split.1				\
	 	srchtxt.1			\
		ssh.sunssh.1			\
		ssh-add.sunssh.1			\
		ssh-agent.sunssh.1			\
		ssh-http-proxy-connect.sunssh.1	\
		ssh-keygen.sunssh.1		\
		ssh-keyscan.sunssh.1		\
		ssh-socks5-proxy-connect.sunssh.1	\
	 	strchg.1			\
	 	strings.1			\
	 	strip.1				\
	 	stty.1				\
	 	sum.1				\
	 	suspend.1			\
	 	svcprop.1			\
	 	svcs.1				\
	 	symorder.1			\
		sysV-make.1			\
	 	sys-suspend.1			\
	 	tabs.1				\
	 	tail.1				\
	 	talk.1				\
	 	tar.1				\
	 	tbl.1				\
	 	tcopy.1				\
	 	tee.1				\
	 	telnet.1			\
	 	test.1				\
	 	tftp.1				\
	 	time.1				\
	 	times.1				\
	 	timex.1				\
	 	tip.1				\
	 	tnfdump.1			\
	 	tnfxtract.1			\
	 	touch.1				\
	 	tput.1				\
	 	tr.1				\
	 	trap.1				\
	 	troff.1				\
	 	true.1				\
	 	truss.1				\
	 	tsort.1				\
	 	tty.1				\
	 	type.1				\
	 	typeset.1			\
	 	ul.1				\
	 	umask.1				\
	 	uname.1				\
	 	unifdef.1			\
	 	uniq.1				\
	 	units.1				\
	 	unix2dos.1			\
	 	uptime.1			\
		uuidgen.1			\
		vacation.1			\
	 	vgrind.1			\
	 	volcheck.1			\
	 	volrmmount.1			\
	 	w.1				\
	 	wait.1				\
	 	wc.1				\
	 	which.1				\
	 	who.1				\
	 	whocalls.1			\
	 	whois.1				\
	 	write.1				\
	 	xargs.1				\
	 	xgettext.1			\
	 	xstr.1				\
	 	yacc.1				\
	 	yes.1				\
	 	ypcat.1				\
	 	ypmatch.1			\
	 	yppasswd.1			\
	 	ypwhich.1			\
	 	zlogin.1			\
	 	zonename.1

MANLINKS=	batch.1		\
	 	bg.1		\
	 	case.1		\
	 	chdir.1		\
	 	checkeq.1	\
	 	continue.1	\
	 	decrypt.1	\
	 	dirname.1	\
	 	dirs.1		\
	 	disable.1	\
		dmake.1		\
	 	dumpkeys.1	\
		edit.1		\
	 	errange.1	\
		errdate.1	\
		errgid.1	\
		errint.1	\
		erritem.1	\
		errpath.1	\
		errstr.1	\
		errtime.1	\
		erruid.1	\
		erryorn.1	\
		eval.1		\
		export.1	\
		false.1		\
		fc.1		\
		fg.1		\
		for.1		\
		foreach.1	\
		function.1	\
		goto.1		\
		hashcheck.1	\
		hashmake.1	\
		hashstat.1	\
		helpdate.1	\
		helpgid.1	\
		helpint.1	\
		helpitem.1	\
		helppath.1	\
		helprange.1	\
		helpstr.1	\
		helptime.1	\
		helpuid.1	\
		helpyorn.1	\
		hist.1		\
		if.1		\
		intro.1		\
		jsh.1		\
		ksh.1		\
		ldapadd.1	\
		neqn.1		\
		notify.1	\
		onintr.1	\
		page.1		\
		pcat.1		\
		pcred.1		\
		pfcsh.1		\
		pfiles.1	\
		pfksh.1		\
		pflags.1	\
		pfsh.1		\
		pkill.1		\
		pldd.1		\
		popd.1		\
		prun.1		\
		psig.1		\
		pstack.1	\
		pstop.1		\
		ptime.1		\
		pushd.1		\
		pwait.1		\
		pwdx.1		\
		red.1		\
		rehash.1	\
		remote_shell.1	\
		remsh.1		\
		repeat.1	\
		return.1	\
		rksh.1		\
		rksh93.1	\
		rmail.1		\
		rmdir.1		\
		rmumount.1	\
		scp.1		\
		select.1	\
		setenv.1	\
		settime.1	\
		sftp.1		\
		sh.1		\
		snca.1		\
		source.1	\
		spellin.1	\
		ssh.1		\
		ssh-add.1	\
		ssh-agent.1	\
		ssh-http-proxy-connect.1	\
		ssh-keygen.1	\
		ssh-keyscan.1	\
		ssh-socks5-proxy-connect.1	\
		stop.1		\
		strconf.1	\
		switch.1	\
		ulimit.1	\
		unalias.1	\
		uncompress.1	\
		unexpand.1	\
		unhash.1	\
		unlimit.1	\
		unpack.1	\
		unset.1		\
		unsetenv.1	\
		until.1		\
		valdate.1	\
		valgid.1	\
		valint.1	\
		valpath.1	\
		valrange.1	\
		valstr.1	\
		valtime.1	\
		valuid.1	\
		valyorn.1	\
		vedit.1		\
		whatis.1	\
		whence.1	\
		while.1		\
		zcat.1

intro.1		:= LINKSRC = Intro.1

whatis.1	:= LINKSRC = apropos.1

unalias.1	:= LINKSRC = alias.1

batch.1		:= LINKSRC = at.1

dirname.1	:= LINKSRC = basename.1

continue.1	:= LINKSRC = break.1

chdir.1		:= LINKSRC = cd.1
dirs.1		:= LINKSRC = cd.1
popd.1		:= LINKSRC = cd.1
pushd.1		:= LINKSRC = cd.1

errdate.1	:= LINKSRC = ckdate.1
helpdate.1	:= LINKSRC = ckdate.1
valdate.1	:= LINKSRC = ckdate.1

errgid.1	:= LINKSRC = ckgid.1
helpgid.1	:= LINKSRC = ckgid.1
valgid.1	:= LINKSRC = ckgid.1

errint.1	:= LINKSRC = ckint.1
helpint.1	:= LINKSRC = ckint.1
valint.1	:= LINKSRC = ckint.1

erritem.1	:= LINKSRC = ckitem.1
helpitem.1	:= LINKSRC = ckitem.1

errpath.1	:= LINKSRC = ckpath.1
helppath.1	:= LINKSRC = ckpath.1
valpath.1	:= LINKSRC = ckpath.1

errange.1	:= LINKSRC = ckrange.1
helprange.1	:= LINKSRC = ckrange.1
valrange.1	:= LINKSRC = ckrange.1

errstr.1	:= LINKSRC = ckstr.1
helpstr.1	:= LINKSRC = ckstr.1
valstr.1	:= LINKSRC = ckstr.1

errtime.1	:= LINKSRC = cktime.1
helptime.1	:= LINKSRC = cktime.1
valtime.1	:= LINKSRC = cktime.1

erruid.1	:= LINKSRC = ckuid.1
helpuid.1	:= LINKSRC = ckuid.1
valuid.1	:= LINKSRC = ckuid.1

erryorn.1	:= LINKSRC = ckyorn.1
helpyorn.1	:= LINKSRC = ckyorn.1
valyorn.1	:= LINKSRC = ckyorn.1

uncompress.1	:= LINKSRC = compress.1
zcat.1		:= LINKSRC = compress.1

red.1		:= LINKSRC = ed.1

disable.1	:= LINKSRC = enable.1

decrypt.1	:= LINKSRC = encrypt.1

dmake.1		:= LINKSRC = make.1

checkeq.1	:= LINKSRC = eqn.1
neqn.1		:= LINKSRC = eqn.1

eval.1		:= LINKSRC = exec.1
source.1	:= LINKSRC = exec.1

goto.1		:= LINKSRC = exit.1
return.1	:= LINKSRC = exit.1

unexpand.1	:= LINKSRC = expand.1

hashstat.1	:= LINKSRC = hash.1
rehash.1	:= LINKSRC = hash.1
unhash.1	:= LINKSRC = hash.1

fc.1		:= LINKSRC = history.1
hist.1		:= LINKSRC = history.1

bg.1		:= LINKSRC = jobs.1
fg.1		:= LINKSRC = jobs.1
notify.1	:= LINKSRC = jobs.1
stop.1		:= LINKSRC = jobs.1

jsh.1		:= LINKSRC = ksh93.1
ksh.1		:= LINKSRC = ksh93.1
rksh.1		:= LINKSRC = ksh93.1
rksh93.1	:= LINKSRC = ksh93.1
sh.1		:= LINKSRC = ksh93.1

ldapadd.1	:= LINKSRC = ldapmodify.1

ulimit.1	:= LINKSRC = limit.1
unlimit.1	:= LINKSRC = limit.1

dumpkeys.1	:= LINKSRC = loadkeys.1

rmail.1		:= LINKSRC = mail.1

page.1		:= LINKSRC = more.1

snca.1		:= LINKSRC = nca.1

pcat.1		:= LINKSRC = pack.1
unpack.1	:= LINKSRC = pack.1

pfcsh.1		:= LINKSRC = pfexec.1
pfksh.1		:= LINKSRC = pfexec.1
pfsh.1		:= LINKSRC = pfexec.1

pkill.1		:= LINKSRC = pgrep.1

pcred.1		:= LINKSRC = proc.1
pfiles.1	:= LINKSRC = proc.1
pflags.1	:= LINKSRC = proc.1
pldd.1		:= LINKSRC = proc.1
prun.1		:= LINKSRC = proc.1
psig.1		:= LINKSRC = proc.1
pstack.1	:= LINKSRC = proc.1
pstop.1		:= LINKSRC = proc.1
ptime.1		:= LINKSRC = proc.1
pwait.1		:= LINKSRC = proc.1
pwdx.1		:= LINKSRC = proc.1

rmdir.1		:= LINKSRC = rm.1

rmumount.1	:= LINKSRC = rmmount.1

remote_shell.1	:= LINKSRC = rsh.1
remsh.1		:= LINKSRC = rsh.1

export.1	:= LINKSRC = set.1
setenv.1	:= LINKSRC = set.1
unset.1		:= LINKSRC = set.1
unsetenv.1	:= LINKSRC = set.1

case.1		:= LINKSRC = shell_builtins.1
for.1		:= LINKSRC = shell_builtins.1
foreach.1	:= LINKSRC = shell_builtins.1
function.1	:= LINKSRC = shell_builtins.1
if.1		:= LINKSRC = shell_builtins.1
repeat.1	:= LINKSRC = shell_builtins.1
select.1	:= LINKSRC = shell_builtins.1
switch.1	:= LINKSRC = shell_builtins.1
until.1		:= LINKSRC = shell_builtins.1
while.1		:= LINKSRC = shell_builtins.1

hashcheck.1	:= LINKSRC = spell.1
hashmake.1	:= LINKSRC = spell.1
spellin.1	:= LINKSRC = spell.1

scp.1				:= LINKSRC = scp.sunssh.1
sftp.1				:= LINKSRC = sftp.sunssh.1
ssh.1				:= LINKSRC = ssh.sunssh.1
ssh-add.1			:= LINKSRC = ssh-add.sunssh.1
ssh-agent.1			:= LINKSRC = ssh-agent.sunssh.1
ssh-http-proxy-connect.1	:= LINKSRC = ssh-http-proxy-connect.sunssh.1
ssh-keygen.1			:= LINKSRC = ssh-keygen.sunssh.1
ssh-keyscan.1			:= LINKSRC = ssh-keyscan.sunssh.1
ssh-socks5-proxy-connect.1	:= LINKSRC = ssh-socks5-proxy-connect.sunssh.1

strconf.1	:= LINKSRC = strchg.1

settime.1	:= LINKSRC = touch.1

onintr.1	:= LINKSRC = trap.1

false.1		:= LINKSRC = true.1

whence.1	:= LINKSRC = typeset.1

# Links to usr/has/man

edit.1		:= LINKSRC = ../../../has/man/man1has/edit.1has

vedit.1		:= LINKSRC = ../../../has/man/man1has/vi.1has

.KEEP_STATE:

include		$(SRC)/man/Makefile.man

install:	$(ROOTMANFILES) $(ROOTMANLINKS)