Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -405,17 +405,21 @@ top.h: top.c

# Build rules for non-C back ends

.l.go:

%.go: %.l $(FLEX)
$(AM_V_LEX)$(FLEX) $(TESTOPTS) -o $@ $<

# This is a temporary fake rule for use while the Go back end still
# actually generates C.
.go:

%.o: %.go
$(CC) $< -o $*_go
## A Go backend would be built like this
# .l.go:
#
# %.go: %.l $(FLEX)
# $(AM_V_LEX)$(FLEX) $(TESTOPTS) -o $@ $<
#
# .go:
#
# # This is a temporary fake rule for use while the Go back end still
# # actually generates C.
# # We'll replace the CC comand with a golang command if Make still
# # doesn't have a builtin rule when the backend is ready.
#
# %.o: %.go
# $(CC) $< -o $*_go

# Most test productions can be autogenerated from ruleset files, but
# automake has no way to specify such things with a loop in a variable
Expand Down Expand Up @@ -448,7 +452,8 @@ RULESETS = \
$(srcdir)/yyunput.rules

$(srcdir)/ruleset.am: $(srcdir)/ruleset.sh $(RULESETS)
( cd $(srcdir) && $(SHELL) ruleset.sh nr r c99 go >ruleset.am )
( cd $(srcdir) && $(SHELL) ruleset.sh nr r c99 >ruleset.am )
# ( cd $(srcdir) && $(SHELL) ruleset.sh nr r c99 go >ruleset.am )

include $(srcdir)/ruleset.am

Expand Down
Loading