1# 2# Makefile for the doc directory 3# 4 5srcdir = @srcdir@ 6top_srcdir = @top_srcdir@ 7VPATH = @srcdir@ 8top_builddir = .. 9my_dir = doc 10INSTALL = @INSTALL@ 11 12@MCONFIG@ 13 14DVI=texi2dvi --clean 15DVIPS=dvips -o "$@" 16INFO=@MAKEINFO@ 17HTML=makeinfo --html --no-split 18PS2PDF=ps2pdf 19 20all:: libext2fs.info libext2fs.dvi libext2fs.html 21 22install-doc-libs: libext2fs.info libext2fs.dvi 23 $(Q) $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info* 24 $(E) " MKDIR_P $(infodir)" 25 $(Q) $(MKDIR_P) $(DESTDIR)$(infodir) 26 -$(Q) for i in libext2fs.info* ; do \ 27 echo " INSTALL_DATA $(infodir)/$$i" ; \ 28 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \ 29 done 30 $(E) " GZIP $(infodir)/libext2fs.info*" 31 -$(Q) gzip -9n $(DESTDIR)$(infodir)/libext2fs.info* 32 33uninstall-doc-libs: 34 $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info* 35 36libext2fs.info: $(srcdir)/libext2fs.texinfo 37 $(E) " MAKEINFO $@" 38 -$(Q) $(INFO) $(srcdir)/libext2fs.texinfo 39 40libext2fs.dvi: $(srcdir)/libext2fs.texinfo 41 $(E) " TEXI2DVI $@" 42 -$(Q) $(DVI) $(srcdir)/libext2fs.texinfo 43 44libext2fs.ps: libext2fs.dvi 45 $(E) " DVIPS $@" 46 -$(Q) $(DVIPS) libext2fs.dvi 47 48libext2fs.pdf: libext2fs.ps 49 $(E) " PS2PDF $@" 50 -$(Q) $(PS2PDF) libext2fs.ps 51 52libext2fs.html: $(srcdir)/libext2fs.texinfo 53 $(E) " TEXI2HTML $@" 54 -$(Q) $(HTML) $(srcdir)/libext2fs.texinfo 55 56.PHONY: distclean 57distclean:: clean 58 $(RM) -f Makefile 59 60.PHONY: clean 61clean:: clean-all 62 63.PHONY: clean-all 64clean-all:: clean-tex clean-backup clean-final clean-tarfiles clean-html 65 66.PHONY: clean-final 67clean-final:: 68 $(RM) -f *.ps *.info *.info-? *.html *.pdf 69 70.PHONY: clean-tex 71clean-tex:: 72 $(RM) -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *.fns 73 74.PHONY: clean-backup 75clean-backup:: 76 $(RM) -f *~ #* 77 78.PHONY: clean-tarfiles 79clean-tarfiles:: 80 $(RM) -f *.tar *.tar.gz *.tgz 81 82clean-html:: 83 $(RM) -f *.html 84 85