diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/calc++/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/calc++/Makefile.am b/examples/calc++/Makefile.am index 627b20c9..1456f2e7 100644 --- a/examples/calc++/Makefile.am +++ b/examples/calc++/Makefile.am @@ -62,8 +62,11 @@ $(srcdir)/calc++-parser.stamp: $(srcdir)/calc++-parser.yy $(BISON_IN) @mv -f calc++-parser.tmp $@ $(calc_sources_generated): $(srcdir)/calc++-parser.stamp - rm -f $(srcdir)/calc++-parser.stamp - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/calc++-parser.stamp + @if test -f $@; then :; else \ + rm -f $(srcdir)/calc++-parser.stamp && \ + $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/calc++-parser.stamp; \ + fi + ## --------------------------- ## ## Building & testing calc++. ## |