Home | History | Annotate | Download | only in doc
      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=texi2html -split_chapter
     18 
     19 all:: libext2fs.info libext2fs.dvi
     20 
     21 install-doc-libs: libext2fs.info libext2fs.dvi
     22 	$(Q) $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
     23 	$(E) "	MKINSTALLDIRS $(infodir)"
     24 	$(Q) $(MKINSTALLDIRS) $(DESTDIR)$(infodir)
     25 	-$(Q) for i in libext2fs.info* ; do \
     26 		echo "	INSTALL_DATA $(infodir)/$$i" ; \
     27 		$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
     28 	done
     29 	$(E) "	GZIP $(infodir)/libext2fs.info*"
     30 	-$(Q) gzip -9 $(DESTDIR)$(infodir)/libext2fs.info*
     31 
     32 uninstall-doc-libs:
     33 	$(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
     34 
     35 libext2fs.info: $(srcdir)/libext2fs.texinfo
     36 	$(E) "	MAKEINFO $@"
     37 	-$(Q) $(INFO) $(srcdir)/libext2fs.texinfo
     38 
     39 libext2fs.dvi: $(srcdir)/libext2fs.texinfo
     40 	$(E) "	TEXI2DVI $@"
     41 	-$(Q) $(DVI) $(srcdir)/libext2fs.texinfo
     42 
     43 libext2fs_abt.html: $(srcdir)/libext2fs.texinfo
     44 	$(E) "	TEXI2HTML $@"
     45 	-$(Q) $(HTML) $(srcdir)/libext2fs.texinfo
     46 	-$(Q) if test -d libext2fs ; then \
     47 		mv libext2fs/* . ; rmdir libext2fs ; \
     48 		fi
     49 
     50 .PHONY: distclean
     51 distclean:: clean
     52 	$(RM) -f Makefile
     53 
     54 .PHONY: clean
     55 clean:: clean-all
     56 
     57 .PHONY: clean-all
     58 clean-all:: clean-tex clean-backup clean-final clean-tarfiles clean-html
     59 
     60 .PHONY: clean-final
     61 clean-final::
     62 	$(RM) -f *.ps *.info *.info-? *.html
     63 
     64 .PHONY: clean-tex
     65 clean-tex::
     66 	$(RM) -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *.fns
     67 
     68 .PHONY: clean-backup
     69 clean-backup::
     70 	$(RM) -f *~ #*
     71 
     72 .PHONY: clean-tarfiles
     73 clean-tarfiles::
     74 	$(RM) -f *.tar *.tar.gz *.tgz
     75 
     76 clean-html::
     77 	$(RM) -f *.html
     78 
     79