1 export GOPATH
:= $(dir $(abspath
$(lastword
$(MAKEFILE_LIST
))))
5 SOURCES_BASE
= src
/types
/types.go src
/readline
/readline.go \
6 src
/reader
/reader.go src
/printer
/printer.go \
7 src
/env
/env.go src
/core
/core.go
8 SOURCES_LISP
= src
/stepA_interop
/stepA_interop.go
9 SOURCES
= $(SOURCES_BASE
) $(SOURCES_LISP
)
13 SRCS
= step0_repl.go step1_read_print.go step2_eval.go step3_env.go \
14 step4_if_fn_do.go step5_tco.go step6_file.go step7_quote.go \
15 step8_macros.go step9_try.go stepA_interop.go
22 mal
: $(word $(words $(BINS
)),$(BINS
))
26 $(1): $(SOURCES_BASE
) src
/$(1)/$(1).go
30 $(foreach b
,$(BINS
),$(eval
$(call dep_template
,$(b
))))
35 .PHONY
: stats stats-lisp
39 stats-lisp
: $(SOURCES_LISP
)