e2fsprogs/doc/Makefile.in
Theodore Ts'o 3ab2fd4e23 Define MKDIR_P in the Makefile.in files instead in MCONFIG.in
In the case where mkdir -p is not thread-safe (for example, if the
build environment is using busybox's mkdir) the configure script will
fall back to the slow (but safe) install-sh script.  In that case
MKDIR_P will be using a relative pathname; so we can't use speed
optimization of defining configure substitutions in MCONFIG.in, since
the substitution will be different depending on depth of the
subdirectory in the Makefile.in file.

https://github.com/tytso/e2fsprogs/issues/51

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2020-10-04 23:05:01 -04:00

86 lines
1.8 KiB
Makefile

#
# Makefile for the doc directory
#
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
top_builddir = ..
my_dir = doc
INSTALL = @INSTALL@
MKDIR_P = @MKDIR_P@
@MCONFIG@
DVI=texi2dvi --clean
DVIPS=dvips -o "$@"
INFO=@MAKEINFO@
HTML=makeinfo --html --no-split
PS2PDF=ps2pdf
all:: libext2fs.info libext2fs.dvi libext2fs.html
install-doc-libs: libext2fs.info libext2fs.dvi
$(Q) $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
$(E) " MKDIR_P $(infodir)"
$(Q) $(MKDIR_P) $(DESTDIR)$(infodir)
-$(Q) for i in libext2fs.info* ; do \
echo " INSTALL_DATA $(infodir)/$$i" ; \
$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
done
$(E) " GZIP $(infodir)/libext2fs.info*"
-$(Q) gzip -9n $(DESTDIR)$(infodir)/libext2fs.info*
uninstall-doc-libs:
$(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
libext2fs.info: $(srcdir)/libext2fs.texinfo
$(E) " MAKEINFO $@"
-$(Q) $(INFO) $(srcdir)/libext2fs.texinfo
libext2fs.dvi: $(srcdir)/libext2fs.texinfo
$(E) " TEXI2DVI $@"
-$(Q) $(DVI) $(srcdir)/libext2fs.texinfo
libext2fs.ps: libext2fs.dvi
$(E) " DVIPS $@"
-$(Q) $(DVIPS) libext2fs.dvi
libext2fs.pdf: libext2fs.ps
$(E) " PS2PDF $@"
-$(Q) $(PS2PDF) libext2fs.ps
libext2fs.html: $(srcdir)/libext2fs.texinfo
$(E) " TEXI2HTML $@"
-$(Q) $(HTML) $(srcdir)/libext2fs.texinfo
.PHONY: distclean
distclean:: clean
$(RM) -f Makefile
.PHONY: clean
clean:: clean-all
.PHONY: clean-all
clean-all:: clean-tex clean-backup clean-final clean-tarfiles clean-html
.PHONY: clean-final
clean-final::
$(RM) -f *.ps *.info *.info-? *.html *.pdf
.PHONY: clean-tex
clean-tex::
$(RM) -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *.fns
.PHONY: clean-backup
clean-backup::
$(RM) -f *~ #*
.PHONY: clean-tarfiles
clean-tarfiles::
$(RM) -f *.tar *.tar.gz *.tgz
clean-html::
$(RM) -f *.html