learning-sicp

My embarrassing half assed SICP run.
git clone https://kaka.farm/~git/learning-sicp
Log | Files | Refs

Makefile (698B)


      1 #tests = $(wildcard sicp/tests/chapter-*/exercise-*.scm)
      2 $(guile (load "make.scm"))
      3 
      4 solutions := $(guile solutions)
      5 tests := $(guile tests)
      6 tests_logs := $(guile tests-logs)
      7 
      8 .PHONY: print_variables
      9 print_variables:
     10 	@printf "solutions:\n%s\n" $(solutions)
     11 	@printf "tests:\n%s\n" $(tests)
     12 	@printf "tests logs:\n%s\n" $(tests_logs)
     13 
     14 .PHONY: all
     15 all: $(tests_logs)
     16 
     17 $(tests_logs):
     18 	guile -L . $(guile (log-to-test "$@"))
     19 
     20 original-repl-tests.log:
     21 	guile -L . sicp/tests/chapter-4/original-repl-tests.scm
     22 
     23 .PHONY: statistics
     24 statistics:
     25 	guile -L . -e '(@ (sicp statistics) main)' -s sicp/statistics.scm
     26 
     27 .PHONY: statistics
     28 tests-statistics: statistics.log
     29 	guile -L . -s sicp/statistics-tests.scm