TARGETS = fb-driv.dvi

.SUFFIXES: .dvi .ps .info .texi

.dvi.ps:
	dvips $< -o $@

.texi.dvi:
	texi2dvi $<

.texi.info:
	makeinfo $< -o $@

all: dvi ps info

dvi: $(TARGETS)

ps: $(TARGETS:.dvi=.ps)

info: $(TARGETS:.dvi=.info)

clean:
	rm -f *aux *cp *cps *fn *fns *ind *ilg *ky *log *pg *toc *tp *vr *vrs

realclean: clean
	rm -f $(TARGETS) $(TARGETS:.dvi=.ps) $(TARGETS:.dvi=.info)

install: info
	install -m644 $(TARGETS:.dvi=.info) $${INFOFILES:-/usr/local/emacs/info}
	@echo "Do not forget to set links from your toplevel \"dir\" to"
	@echo $(TARGETS:.dvi=.info).
