blob: a2b26123636b2810de6748211dbf175aad623565 [file] [log] [blame]
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001#
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 "$@"
Manish Katiyar7321d942008-04-14 17:20:03 +053016INFO=@MAKEINFO@
Theodore Ts'ob79e3382013-12-28 15:40:56 -050017HTML=makeinfo --html --no-split
Theodore Ts'occfedb12013-01-02 10:06:09 -050018PS2PDF=ps2pdf
Theodore Ts'o21c84b71997-04-29 16:15:03 +000019
Theodore Ts'ob79e3382013-12-28 15:40:56 -050020all:: libext2fs.info libext2fs.dvi libext2fs.html
Theodore Ts'o21c84b71997-04-29 16:15:03 +000021
Mike Frysinger1f803992008-02-28 20:41:17 -050022install-doc-libs: libext2fs.info libext2fs.dvi
Theodore Ts'oc13351f2009-07-02 00:11:17 -040023 $(Q) $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
24 $(E) " MKINSTALLDIRS $(infodir)"
25 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(infodir)
26 -$(Q) for i in libext2fs.info* ; do \
Theodore Ts'o522798d2004-12-15 11:28:55 -050027 echo " INSTALL_DATA $(infodir)/$$i" ; \
Theodore Ts'o21c84b71997-04-29 16:15:03 +000028 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
29 done
Theodore Ts'oc13351f2009-07-02 00:11:17 -040030 $(E) " GZIP $(infodir)/libext2fs.info*"
31 -$(Q) gzip -9 $(DESTDIR)$(infodir)/libext2fs.info*
Theodore Ts'o21c84b71997-04-29 16:15:03 +000032
Theodore Ts'oe5fa0e31998-04-01 02:18:45 +000033uninstall-doc-libs:
Theodore Ts'oacd8df62001-06-27 07:51:11 -040034 $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
Theodore Ts'oe5fa0e31998-04-01 02:18:45 +000035
Theodore Ts'o21c84b71997-04-29 16:15:03 +000036libext2fs.info: $(srcdir)/libext2fs.texinfo
Theodore Ts'oc13351f2009-07-02 00:11:17 -040037 $(E) " MAKEINFO $@"
38 -$(Q) $(INFO) $(srcdir)/libext2fs.texinfo
Theodore Ts'o21c84b71997-04-29 16:15:03 +000039
40libext2fs.dvi: $(srcdir)/libext2fs.texinfo
Theodore Ts'oc13351f2009-07-02 00:11:17 -040041 $(E) " TEXI2DVI $@"
42 -$(Q) $(DVI) $(srcdir)/libext2fs.texinfo
Theodore Ts'o21c84b71997-04-29 16:15:03 +000043
Theodore Ts'occfedb12013-01-02 10:06:09 -050044libext2fs.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
Theodore Ts'ob79e3382013-12-28 15:40:56 -050052libext2fs.html: $(srcdir)/libext2fs.texinfo
Theodore Ts'o4534f8b2009-11-29 20:19:10 -050053 $(E) " TEXI2HTML $@"
54 -$(Q) $(HTML) $(srcdir)/libext2fs.texinfo
Theodore Ts'o4534f8b2009-11-29 20:19:10 -050055
Theodore Ts'o3ac9f0e1999-07-19 21:02:11 +000056.PHONY: distclean
57distclean:: clean
Theodore Ts'oacd8df62001-06-27 07:51:11 -040058 $(RM) -f Makefile
Theodore Ts'o3ac9f0e1999-07-19 21:02:11 +000059
Theodore Ts'o21c84b71997-04-29 16:15:03 +000060.PHONY: clean
61clean:: clean-all
62
63.PHONY: clean-all
Theodore Ts'o4534f8b2009-11-29 20:19:10 -050064clean-all:: clean-tex clean-backup clean-final clean-tarfiles clean-html
Theodore Ts'o21c84b71997-04-29 16:15:03 +000065
66.PHONY: clean-final
67clean-final::
Theodore Ts'occfedb12013-01-02 10:06:09 -050068 $(RM) -f *.ps *.info *.info-? *.html *.pdf
Theodore Ts'o21c84b71997-04-29 16:15:03 +000069
70.PHONY: clean-tex
71clean-tex::
Andreas Dilger71e770f2001-08-04 00:58:54 -060072 $(RM) -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *.fns
Theodore Ts'o21c84b71997-04-29 16:15:03 +000073
74.PHONY: clean-backup
75clean-backup::
Andreas Dilger71e770f2001-08-04 00:58:54 -060076 $(RM) -f *~ #*
Theodore Ts'o21c84b71997-04-29 16:15:03 +000077
78.PHONY: clean-tarfiles
79clean-tarfiles::
Andreas Dilger71e770f2001-08-04 00:58:54 -060080 $(RM) -f *.tar *.tar.gz *.tgz
Theodore Ts'o4534f8b2009-11-29 20:19:10 -050081
82clean-html::
83 $(RM) -f *.html
84