NAME=skeleton

$(NAME):
	latex $(NAME)

x: $(NAME).dvi
	xdvi -geometry =1200x600-0-0 -expert -s 2 $(NAME)

ps:
	@rm -f $(NAME).ps
	dvips -f $(NAME) > $(NAME).ps
	gs $(NAME).ps

spell: $(NAME).vspell

$(NAME).vspell:
	@rm -f $(NAME).txt $(NAME).spell $(NAME).vspell
	dvi2tty $(NAME).dvi > $(NAME).txt
	spell $(NAME).txt > $(NAME).spell
	vspell < $(NAME).spell > $(NAME).vspell

clean:
	@rm -f $(NAME).aux $(NAME).dvi $(NAME).log $(NAME).ps \
		$(NAME).txt $(NAME).spell $(NAME).vspell
