From 13421c7c0e92d33a9f5e4ef2250b724785a63cf2 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 4 Mar 2006 21:18:15 +0000 Subject: [PATCH] MSYS ships an obsolete version of GNU make which doesn't grok order-only prerequisites. They were used to make directories info.html, info.nr, lib. Make them ahead of time, in configure. Also fixes distclean not removing them. --- Make.mk | 18 ++++++++---------- configure.ac | 1 + 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Make.mk b/Make.mk index c7d3ddbc2..00e30a2fc 100644 --- a/Make.mk +++ b/Make.mk @@ -86,7 +86,7 @@ subst.in = sed \ # See `Cleanliness' below # sources.mk subjects.mk # Generated by Autoconf, not distributed: -ac := config.h config.log config.status stamp-h +ac := config.h config.log config.status info.html info.nr lib stamp-h ac += $(basename $(filter %.in, $(src))) ac += $(srcdir)/autom4te.cache $(srcdir)/src/client/autom4te.cache # distributed by dist-source from $(srcdir): @@ -174,7 +174,7 @@ install: all installdirs $(INSTALL_DATA) $(info.nr) $(einfodir) $(INSTALL_DATA) $(addprefix $(srcdir)/, $(man1)) $(mandir)/man1 $(INSTALL_DATA) $(addprefix $(srcdir)/, $(man6)) $(mandir)/man6 - if test -e $(econfig); then \ + if [ -e $(econfig) ]; then \ if src/util/pconfig $(econfig) >$(econfig).new; then \ if cmp -s $(econfig) $(econfig).new; then \ rm $(econfig).new; \ @@ -193,7 +193,8 @@ installdirs: mkdir -p $(sbindir) $(bindir) $(builtindir) $(einfodir) $(mandir)/man1 $(mandir)/man6 $(dir $(econfig)) $(gamedir) .PHONY: install-html -install-html: html | $(ehtmldir) +install-html: html + mkdir -p $(ehtmldir) $(INSTALL_DATA) $(info.html) $(ehtmldir) .PHONY: uninstall @@ -257,7 +258,7 @@ lib/libgen.a: $(filter src/lib/gen/%, $(obj)) lib/libglobal.a: $(filter src/lib/global/%, $(obj)) lib/liblwp.a: $(filter src/lib/lwp/%, $(obj)) -$(libs) $(empth_lib): | lib +$(libs) $(empth_lib): $(AR) rc $@ $? $(RANLIB) $@ @@ -284,13 +285,10 @@ info.html/all.html: $(filter-out info.html/all.html, $(info.html)) info/ls2html. (cd info.html && ls -C $(notdir $(info.html))) | expand | perl $(filter %.pl, $^) >$@ # FIXME shouldn't use ls -$(info.nr): info/CRT.MAC info/INFO.MAC info/Blank.awk | info.nr +$(info.nr): info/CRT.MAC info/INFO.MAC info/Blank.awk -$(subjects.html) info.html/TOP.html: info/subj2html.pl | info.html -$(topics.html): info/emp2html.pl | info.html - -info.nr info.html lib: - mkdir -p $@ +$(subjects.html) info.html/TOP.html: info/subj2html.pl +$(topics.html): info/emp2html.pl ifeq ($(cvs_controlled),yes) # Find files and directories under CVS control diff --git a/configure.ac b/configure.ac index 46811a0cd..040730cf0 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,7 @@ AC_CONFIG_COMMANDS([stamp-h], mkdir -p `sed s/.*=// <$srcdir/sources.mk | tr ' ' '\012' \ | sed -n '/\//s,/@<:@^/@:>@*$,,gp'| uniq` fi + mkdir -p info.html info.nr lib >stamp-h], [cvs_controlled=$cvs_controlled; AWK=$AWK]) AC_OUTPUT -- 2.43.0