aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am.inc
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2016-04-28 10:48:13 -0400
committerJeff Morriss <jeff.morriss.ws@gmail.com>2016-04-28 18:56:09 +0000
commit363507ea18e154d76654f0d811e89e041273f835 (patch)
treea8ea2a14588e2c69dffd7bc92b8013b38ff3ef23 /Makefile.am.inc
parentb3e70f9a7e91c7b462336f875c26965faedf1953 (diff)
Add a rule to build lemon so any target that depends on it can (re)build it if necessary.
See, for example: https://ask.wireshark.org/questions/52045/make-c-plugins-fails-looking-for-target-toolslemonlemonc Also add another lemon dependency for MATE. Change-Id: Ifc62e174fb6dc4247887607ad37a505b36d83134 Reviewed-on: https://code.wireshark.org/review/15143 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'Makefile.am.inc')
-rw-r--r--Makefile.am.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am.inc b/Makefile.am.inc
index 0f39785c9a..7f8e3d3629 100644
--- a/Makefile.am.inc
+++ b/Makefile.am.inc
@@ -22,8 +22,10 @@
AUTOMAKE_OPTIONS = -Wno-portability
lemon_srcdir = $(top_srcdir)/tools/lemon
-
-LEMON = $(top_builddir)/tools/lemon/lemon$(EXEEXT)
+lemon_builddir = $(top_builddir)/tools/lemon
+LEMON = $(lemon_builddir)/lemon$(EXEEXT)
+$(LEMON):
+ cd $(lemon_builddir) && $(MAKE)
RUNLEX = $(top_srcdir)/tools/runlex.sh