From 3e44651d7c8195a7cae0ba9d985078a6656c58f5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 21 Jun 2000 14:01:25 +0000 Subject: [PATCH] Check that kdoc is installed, and remove kdoc-installed from the argument list of kdoc. git-svn-id: https://svn.dealii.org/trunk@3055 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/auto/kdoc/Makefile.in | 41 +++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/deal.II/doc/auto/kdoc/Makefile.in b/deal.II/doc/auto/kdoc/Makefile.in index 31d504b140..cc0886488d 100644 --- a/deal.II/doc/auto/kdoc/Makefile.in +++ b/deal.II/doc/auto/kdoc/Makefile.in @@ -41,28 +41,43 @@ kdoc.library-files = base.kdoc \ numerics.kdoc endif -kdoc: $(kdoc.library-files) +kdoc: kdoc-installed $(kdoc.library-files) -base.kdoc: $(kdoc.base) + +# check whether kdoc is already installed. if not, then try to do so +kdoc-installed: + @if test ! -d $(kdocdir) ; then \ + echo "========================================" ; \ + echo "Trying to install kdoc first" ; \ + echo "========================================" ; \ + cd $(kdocdir:kdoc/bin=kdoc) ; \ + $(MAKE) install ; \ + echo "========================================" ; \ + echo "Done" ; \ + echo "========================================" ; \ + fi + +base.kdoc: kdoc-installed $(kdoc.base) @$(PERL) $(KDOCFLAGS) $(subst .kdoc,,$@) -d $(subst .kdoc,,$@) \ - $^ + $(^:kdoc-installed=) -lac.kdoc: $(kdoc.lac) +lac.kdoc: kdoc-installed $(kdoc.lac) @$(PERL) $(KDOCFLAGS) $(subst .kdoc,,$@) -d $(subst .kdoc,,$@) \ - -l base $^ + -l base $(^:kdoc-installed=) -grid.kdoc: $(kdoc.grid) +grid.kdoc: kdoc-installed $(kdoc.grid) @$(PERL) $(KDOCFLAGS) $(subst .kdoc,,$@) -d $(subst .kdoc,,$@) \ - -l base $^ + -l base $(^:kdoc-installed=) -dof.kdoc: $(kdoc.dof) +dof.kdoc: kdoc-installed $(kdoc.dof) $(PERL) $(KDOCFLAGS) $(subst .kdoc,,$@) -d $(subst .kdoc,,$@) \ - -l base -llac -lgrid $^ + -l base -llac -lgrid $(^:kdoc-installed=) -numerics.kdoc: $(kdoc.numerics) +numerics.kdoc: kdoc-installed $(kdoc.numerics) @$(PERL) $(KDOCFLAGS) $(subst .kdoc,,$@) -d $(subst .kdoc,,$@) \ - -l base -llac -lgrid -ldof $^ + -l base -llac -lgrid -ldof $(^:kdoc-installed=) -multigrid.kdoc: $(kdoc.multigrid) +multigrid.kdoc: kdoc-installed $(kdoc.multigrid) @$(PERL) $(KDOCFLAGS) $(subst .kdoc,,$@) -d $(subst .kdoc,,$@) \ - -l base -llac -lgrid -ldof -lnumerics $^ + -l base -llac -lgrid -ldof -lnumerics $(^:kdoc-installed=) + -- 2.39.5