• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15DVIPS=dvips -o "$@"
16INFO=@MAKEINFO@
17HTML=texi2html -split_chapter
18
19all:: libext2fs.info libext2fs.dvi
20
21install-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
32uninstall-doc-libs:
33	$(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
34
35libext2fs.info: $(srcdir)/libext2fs.texinfo
36	$(E) "	MAKEINFO $@"
37	-$(Q) $(INFO) $(srcdir)/libext2fs.texinfo
38
39libext2fs.dvi: $(srcdir)/libext2fs.texinfo
40	$(E) "	TEXI2DVI $@"
41	-$(Q) $(DVI) $(srcdir)/libext2fs.texinfo
42
43libext2fs_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
51distclean:: clean
52	$(RM) -f Makefile
53
54.PHONY: clean
55clean:: clean-all
56
57.PHONY: clean-all
58clean-all:: clean-tex clean-backup clean-final clean-tarfiles clean-html
59
60.PHONY: clean-final
61clean-final::
62	$(RM) -f *.ps *.info *.info-? *.html
63
64.PHONY: clean-tex
65clean-tex::
66	$(RM) -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *.fns
67
68.PHONY: clean-backup
69clean-backup::
70	$(RM) -f *~ #*
71
72.PHONY: clean-tarfiles
73clean-tarfiles::
74	$(RM) -f *.tar *.tar.gz *.tgz
75
76clean-html::
77	$(RM) -f *.html
78
79