From: wolf Date: Mon, 26 Jun 2000 11:46:41 +0000 (+0000) Subject: Find a better way to check whether kdoc is up-to-date when generating docs. If it... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1f61942aa6e19613cbed7731335c8c8067c55a4;p=dealii-svn.git Find a better way to check whether kdoc is up-to-date when generating docs. If it is not up-to-date, then re-generate it. git-svn-id: https://svn.dealii.org/trunk@3074 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/kdoc/Makefile b/deal.II/contrib/kdoc/Makefile index 2572773032..87813b5ead 100644 --- a/deal.II/contrib/kdoc/Makefile +++ b/deal.II/contrib/kdoc/Makefile @@ -2,10 +2,23 @@ # Makefile for the /contrib subdirectory -# by default do nothing -default: +# by default: check whether the updated kdoc is up-to-date with the +# sources +default: bin/kdoc +# let's see whether the installed kdoc is as recent as the sources. we +# check so by comparing the installation date of the executable with +# the modification dates of the source `kdoc' and the subpackages used +# by it. if it is not up-to-date, then install it afresh +# +# note that we only check whether bin/kdoc is up-to-date. this +# suffices, as all the other files are installed at the same time and +# all-or-none, so they should have the same time stamp +bin/kdoc: src/kdoc $(shell echo src/kdoc*.pm) + @echo ================== Remaking kdoc ==== + $(MAKE) install + # specific targets install: cd src ; $(MAKE) ; $(MAKE) install diff --git a/deal.II/doc/auto/kdoc/Makefile.in b/deal.II/doc/auto/kdoc/Makefile.in index 32c49217eb..fa53852af1 100644 --- a/deal.II/doc/auto/kdoc/Makefile.in +++ b/deal.II/doc/auto/kdoc/Makefile.in @@ -46,18 +46,11 @@ endif kdoc: kdoc-installed $(kdoc.library-files) -# check whether kdoc is already installed. if not, then try to do so +# check whether kdoc is already installed. if not, then try to do +# so. also install afresh if not up-to-date with the sources 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 + cd $(kdocdir:kdoc/bin=kdoc) ; $(MAKE) + # now for the generation of the documentation of the sublibraries.