shithub: xml-9atom

ref: 17b3ae4f1a1ce71b26bd2d383c9be513af29bb66
dir: /mkfile/

View raw version
</$objtype/mkfile

INSTALLFILES=\
	/sys/man/1/xb \
	/sys/man/2/xml \
	/sys/include/xml.h \
	/$objtype/lib/libxml.a \
	/$objtype/bin/xb \

CFLAGS=$CFLAGS -I..

all:VQ:
	echo only automatic install possible for now. >[1=2]
	echo Otherwise, try some manual installation. >[1=2]

install:V: $INSTALLFILES

/sys/man/1/xb: xb
	cp $prereq $target

/sys/man/2/xml: xml
	cp $prereq $target

/sys/include/xml.h: xml.h
	cp $prereq $target

/$objtype/lib/libxml.a:
	cd libxml && mk install && cd ..

/$objtype/bin/xb: $O.xb
	cp $prereq $target

$O.%: %.$O
	$LD $LDFLAGS -o $target $prereq

%.$O: %.c
	$CC $CFLAGS $stem.c

clean:V:
	cd libxml && mk clean && cd ..
	rm -f [$OS].* *.[$OS]

nuke:V:
	rm -f $INSTALLFILES