summaryrefslogtreecommitdiff
path: root/lib/am/lex.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/am/lex.am')
-rw-r--r--lib/am/lex.am17
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/am/lex.am b/lib/am/lex.am
index d7ddc7728..9bf3fcaff 100644
--- a/lib/am/lex.am
+++ b/lib/am/lex.am
@@ -14,17 +14,8 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-## See the comment about am__skipyacc in yacc.am.
-if %?MAINTAINER-MODE%
-if %?FIRST%
-@MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
-endif %?FIRST%
-endif %?MAINTAINER-MODE%
-
-?GENERIC?%EXT%%DERIVED-EXT%:
+?GENERIC?%%DERIVED-EXT%: %%EXT%
?!GENERIC?%OBJ%: %SOURCE%
-?GENERIC? %VERBOSE%$(am__skiplex) $(SHELL) $(YLWRAP) %SOURCE% $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE%
-?!GENERIC? %VERBOSE% \
-?!GENERIC??DIST_SOURCE? $(am__skiplex) \
-## For non-suffix rules, we must emulate a VPATH search on %SOURCE%.
-?!GENERIC? $(SHELL) $(YLWRAP) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE%
+ %SILENT%$(am.cmd.ensure-target-dir-exists)
+ %VERBOSE%$(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c %OBJ% \
+ -- %COMPILE%