EMACS=emacs

all:	vm.elc vm.info

vm.elc:
	$(EMACS) -batch -q -l ./vm-message.el -l ./vm-misc.el -f batch-byte-compile vm-*.el
	cat vm-*.elc > vm.elc

vm.info:	vm.texinfo
	$(EMACS) -batch -q vm.texinfo -f texinfo-format-buffer -f save-buffer

clean:
	rm -f *.elc *.info *~
	rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log 
	rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
