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"; \
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) && \
.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; :
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 <doc/gob2.1 >$@.tmp
$(AM_V_at) mv -f $@.tmp $@
echo ' *** Remember to update NEWS before preparing a release.'; \
$(TEST_DISTRIBUTION_OR_ERROR); } >&2
+atlocal: config.status
+ $(AM_V_GEN) :; { \
+ printf ': "$${%s=%s}"\n' \
+ CC '$(CC)' \
+ CXX '$(CXX)' \
+ CPPFLAGS '$(CPPFLAGS)' \
+ CFLAGS '$(CFLAGS)' \
+ CXXFLAGS '$(CXXFLAGS)' \
+ LDFLAGS '$(LDFLAGS)' \
+ GTK_CFLAGS '$(GTK_CFLAGS)' \
+ GTK_LIBS '$(GTK_LIBS)' \
+ LIBGOBJECT_CFLAGS '$(LIBGOBJECT_CFLAGS)' \
+ LIBGOBJECT_LIBS '$(LIBGOBJECT_LIBS)' \
+ HAVE_GOBJECT '$(HAVE_GOBJECT)' \
+ HAVE_GTK2 '$(HAVE_GTK2)' \
+ pkgdatadir '$(pkgdatadir)' \
+ ; } >$@.tmp
+ $(AM_V_at) mv -f $@.tmp $@
+check_DATA = atlocal
+CLEANFILES += atlocal
+
include $(top_srcdir)/common/snippet/autotest.mk