shithub: riscv

ref: 646062da1c4248e5410f29bec14cd1efea5beb45
dir: /sys/src/cmd/pkg/mkfile/

View raw version
</$objtype/mkfile

all: $O.unpkg
	echo

$O.unpkg: unpkg.c
	$CC unpkg.c
	$LD -o $O.unpkg unpkg.$O

install:V: $O.unpkg
	mkdir -p /$objtype/bin/pkg
	cp $O.unpkg /$objtype/bin/pkg/unpkg
	cp create install list local remove /$objtype/bin/pkg

clean:
	rm -f $O.unpkg *.$O

nuke: clean
	rm -f /$objtype/bin/pkg/*