From adbb8249889edc831ec42f7aa2bdbcc8ea192ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 22 May 1998 18:47:41 +0200 Subject: [PATCH] Now automatic rebuilding of machine.h seems to work. Rev: src/Makefile.in:1.91 --- src/Makefile.in | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/Makefile.in b/src/Makefile.in index 76b5283cd2..2332d1a096 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,5 +1,5 @@ # -# $Id: Makefile.in,v 1.90 1998/05/17 16:59:51 grubba Exp $ +# $Id: Makefile.in,v 1.91 1998/05/22 16:47:41 grubba Exp $ # # This line is needed on some machines. @@ -404,12 +404,40 @@ depend: $(SRCDIR)/language.c ( cd modules ; $(MAKE) $(MAKE_FLAGS) depend ) $(SRCDIR)/configure @ac_configure_args@ +# Documentation... + docs: mkdir docs html_docs: docs $(RUNPIKE) $(TMP_BINDIR)/htmlify_docs docs $(TMP_DOCDIR) `echo $(SRCDIR)/modules/*/doc` +wmml: force + @test -d wmml/. || mkdir wmml + @modules="`cd $(SRCDIR)/modules; ls -d */. | sed -e '/^_.*/d' -e 's/\/\.$$//'`"; \ + echo The following modules are interresting:; \ + echo "$$modules"; \ + for d in $$modules; do \ + echo Testing $$d...; \ + if test -f "$(SRCDIR)/modules/$$d/wmml-header"; then \ + echo Module $$d seems to contain WMML docs.; \ + $(RUNPIKE) $(TMP_BINDIR)/mkwmml.pike \ + "$(SRCDIR)/modules/$$d/wmml-header" \ + `find $(SRCDIR)/modules/$$d/. $(SRCDIR)/modules/_$$d*/. -name '*.[ch]' -print 2>/dev/null` \ + "$(SRCDIR)/modules/$$d/wmml-footer" >wmml/$$d.wmml; \ + else :; fi; \ + done + +manpages: wmml + @(if test -f "$(SRCDIR)/../tutorial/tutorial.wmml"; then \ + cat "$(SRCDIR)/../tutorial/tutorial.wmml"; \ + else \ + cat wmml/*.wmml; \ + fi) | (cd wmml; $(RUNPIKE) $(TMP_BINDIR)/wmmltohtml2 \ + $(TMP_BINDIR)/manpages man/man) + +# Lobotomization... + lobotomize_crypto: ( cd $(SRCDIR)/modules/_Crypto ; ./.build_lobotomized_crypto ) ( cd $(SRCDIR)/modules/_Lobotomized_Crypto ; autoconf ) @@ -466,6 +494,9 @@ $(SRCDIR)/stamp-h.in: $(SRCDIR)/configure.in $(SRCDIR)/acconfig.h echo foo > $(SRCDIR)/stamp-h.in machine.h: stamp-h + @if test -f stamp-h; then \ + rm stamp-h; $(MAKE) stamp-h; \ + else :; fi stamp-h: $(SRCDIR)/machine.h.in config.status CONFIG_FILES="" CONFIG_HEADERS=machine.h ./config.status -- GitLab