Plan 9 from Bell Labs’s /usr/web/sources/contrib/yk/lab/git/mkfile

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


</$objtype/mkfile

BIN=/$objtype/bin/git
TARG=\
	conf\
	get\
	fs\
	log\
	query\
	repack\
	save\
	send\
	serve\
	walk

RCFILES=\
	add\
	branch\
	clone\
	commit\
	compat\
	diff\
	export\
	hist\
	import\
	init\
	merge\
	pull\
	push\
	rebase\
	revert\
	rm

OFILES=\
	bio.$O\
	delta.$O\
	objset.$O\
	ols.$O\
	pack.$O\
	proto.$O\
	util.$O\
	ref.$O

HFILES=git.h

</sys/src/cmd/mkmany

# Override install target to install rc.
install:V:
	mkdir -p $BIN
	mkdir -p /sys/lib/git
	for (i in $TARG)
		mk $MKFLAGS $i.install
	for (i in $RCFILES)
		mk $MKFLAGS $i.rcinstall
	cp common.rc /sys/lib/git/common.rc
	chmod +x /sys/lib/git/common.rc

%.rcinstall:V:
	cp $stem $BIN/$stem
	chmod +x $BIN/$stem

clean:V:
	/bin/rm -f *.[$OS] *.a[$OS] y.tab.? lex.yy.c y.debug y.output [$OS].??* $PROGS $CLEANFILES

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.