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