Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/refer/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile
OCC=$CC
OLD=$LD

CC=pcc -c
LD=pcc

BIN=/$objtype/bin/refer
MAN=/sys/man/1

TARG=\
	mkey\
	inv\
	hunt\
	deliv\
	refer\
	pubindex\
	lookbib\
	roffbib\
	bib2ref\

</sys/src/cmd/mkmany
CFLAGS = -FVw -D_POSIX_SOURCE -D_RESEARCH_SOURCE -D_BSD_EXTENSION

install:V:	/lib/eign /sys/lib/tmac/tmac.bib $MAN/refer $MAN/bib2ref

$O.%: %.rc 
	cp $stem.rc $target && chmod +x $target

 tmac.bib: 

$O.bib2ref: bib2ref.c
	$OCC bib2ref.c
	$OLD -o $target bib2ref.$O

$O.mkey: mkey1.$O mkey2.$O mkey3.$O deliv2.$O str.$O error.$O
	$LD -o $target $prereq

$O.inv: inv1.$O inv2.$O inv3.$O inv5.$O inv6.$O deliv2.$O fio.$O str.$O index.$O list.$O error.$O
	$LD -o $target $prereq

$O.hunt: hunt1.$O doquery.$O getq.$O result.$O dropout.$O findline.$O fgrep.$O \
		corout.$O shell.$O deliv2.$O hunt8.$O  util.$O fio.$O str.$O index.$O list.$O error.$O
	$LD -o $target $prereq

$O.refer: glue1.$O refer1.$O refer2.$O refer4.$O refer5.$O refer6.$O mkey3.$O \
	refer7.$O refer8.$O doquery.$O getq.$O deliv2.$O result.$O dropout.$O hunt8.$O \
	corout.$O glue3.$O refer3.$O findline.$O glue2.$O  fgrep.$O refer0.$O shell.$O util.$O fio.$O str.$O index.$O list.$O error.$O
	$LD -o $target $prereq

$O.drefer: glue1.$O refer1.$O refer2.$O refer4.$O refer5.$O refer6.$O mkey3.$O \
	refer7.$O refer8.$O doquery.$O getq.$O deliv2.$O result.$O dropout.$O hunt8.$O \
	glue3.$O refer3.$O corout.$O findline.$O glue2.$O  fgrep.$O refer0.$O shell.$O util.$O fio.$O str.$O index.$O list.$O error.$O
	$LD -o $target $prereq

$O.deliv: deliv1.$O deliv2.$O error.$O
	$LD -o $target $prereq

refer0.$O: refer.h def.h err.h error.h inv.h libc.h mkey.h re.h stdio.h
refer1.$O: refer.h def.h err.h error.h inv.h libc.h mkey.h re.h stdio.h
refer2.$O: refer.h def.h err.h error.h inv.h libc.h mkey.h re.h stdio.h
corout.$O: refer.h def.h err.h error.h inv.h libc.h mkey.h re.h stdio.h
refer4.$O: refer.h def.h err.h error.h inv.h libc.h mkey.h re.h stdio.h
refer6.$O: refer.h def.h err.h error.h inv.h libc.h mkey.h re.h stdio.h

/lib/eign:	eign 
	cp eign /lib/eign
/sys/lib/tmac/tmac.bib: tmac.bib
	cp tmac.bib /sys/lib/tmac/tmac.bib
$MAN/refer:	refer.man 
	cp refer.man $MAN/refer
$MAN/bib2ref:	bib2ref.man 
	cp bib2ref.man $MAN/bib2ref


dist:V:
	9fs sources; cd ..; tar cv refer | bzip2 > /n/sources/contrib/$user/refer.tbz

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.