X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/14f532691ec5161558c80bfbaa81be053d05f0ca..2a3a5063bbebd11132482668d962f3e4f70ee6c9:/Makefile.am diff --git a/Makefile.am b/Makefile.am index e8afbc6..72e996b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -48,6 +48,13 @@ FLEX_V_ = $(FLEX_V_@AM_DEFAULT_V@) FLEX_V_0 = @printf ' %$(DX_ALIGN_V)s %s\n' 'FLEX ' $<; TOOL_ERROR = { \ + echo "ERROR: *** $$tool is missing on your system."; \ + echo " *** Because of this, I cannot compile $$toolsrc."; \ + echo " *** If $$tool is installed but was not detected by configure,";\ + echo " *** consider setting $$toolvar and re-running configure."; \ + echo " *** See config.log for more details."; } >&2; false + +DEV_TOOL_ERROR = { \ echo "ERROR: *** $$tool is missing on your system."; \ echo " *** Because of this, I cannot compile $$toolsrc, but"; \ echo " *** (perhaps because you modified it) the sources appear out"; \ @@ -57,7 +64,7 @@ TOOL_ERROR = { \ src/treefuncs.stamp: src/generate_treefuncs.pl src/treefuncs.def if !HAVE_PERL - @tool=perl toolvar=PERL toolsrc=src/treefuncs.def; $(TOOL_ERROR) + @tool=perl toolvar=PERL toolsrc=src/treefuncs.def; $(DEV_TOOL_ERROR) endif $(AM_V_at) $(MKDIR_P) $(@D) && touch $@.tmp $(AM_V_GEN) (cd $(@D) && \ @@ -68,7 +75,7 @@ endif .l.c: ; .l.stamp: if !HAVE_FLEX - @tool=flex toolvar=FLEX toolsrc=$<; $(TOOL_ERROR) + @tool=flex toolvar=FLEX toolsrc=$<; $(DEV_TOOL_ERROR) endif $(AM_V_at) touch $@.tmp $(AM_V_at) rm -f $*.h.tmp; mv -f $*.h $*.h.tmp 2>/dev/null; : @@ -89,7 +96,7 @@ src/lexer.c src/lexer.h: src/lexer.stamp html-local: doc/gob2.html doc/gob2.html: doc/gob2.1 if !HAVE_PERL - $(PERL_ERROR) + @tool=perl toolvar=PERL toolsrc=$@; $(TOOL_ERROR) endif $(AM_V_GEN) $(PERL) $(top_srcdir)/doc/makehtml.pl $@.tmp $(AM_V_at) mv -f $@.tmp $@ @@ -121,7 +128,7 @@ git_changelog_start = 2cd951c678998b2b0230c8eb25717ecf0f1dd2db dist-hook: generate-changelog generate-changelog: unfuck-distdir -: "$${GIT_DIR=$(top_srcdir)/.git}"; \ - test -d "$$GIT_DIR" || exit 0; { \ + export GIT_DIR; test -d "$$GIT_DIR" || exit 0; { \ $(PERL) -x $(top_srcdir)/build-aux/gitlog-to-changelog -- \ $(git_changelog_start).. && \ echo && \