all: hyst.ko

hyst.ko: hyst.comp
	halcompile --compile hyst.comp
	halcompile --document hyst.comp
	rm -f hyst.9.gz
	gzip hyst.9

install: all
	sudo halcompile --install hyst.comp
	sudo cp hyst.9.gz /usr/share/man/man9

clean:
	rm -f *.gz *.ko *.9

