diff options
| author | Cliff Click <cliffc@acm.org> | 2026-09-21 21:12:19 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-09-21 21:12:19 -0700 |
| commit | 21b9bdf9da645a9b392db0e7ec132fb9aeed5339 (patch) | |
| tree | 017fec9deac682fcd04790b12171ecfcd999785e /chapter25/Makefile | |
| parent | d2ffb24d0a3181d107f80df76570c04e010833ed (diff) | |
| download | Simple-21b9bdf9da645a9b392db0e7ec132fb9aeed5339.tar.gz Simple-21b9bdf9da645a9b392db0e7ec132fb9aeed5339.zip | |
Define a new graph interaction API
Diffstat (limited to 'chapter25/Makefile')
| -rw-r--r-- | chapter25/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chapter25/Makefile b/chapter25/Makefile index 08b7ce56..886354d3 100644 --- a/chapter25/Makefile +++ b/chapter25/Makefile @@ -65,6 +65,10 @@ main_javas := $(wildcard $(SRC)/$(SIMPLE)/*java $(SRC)/$(SIMPLE)/*/*java $(SRC test_javas := $(wildcard $(TST)/$(SIMPLE)/*java $(TST)/$(SIMPLE)/*/*java) simple_driver := $(TST)/$(SIMPLE)/Simple.java main_classes := $(patsubst $(SRC)/%java,$(CLZDIR)/main/%class,$(main_javas)) +# Compile the common adapter into this chapter without copying its sources. +GRAPH_DIR := $(firstword $(wildcard ../graph graph)) +graph_javas := $(wildcard $(GRAPH_DIR)/src/main/java/com/seaofnodes/graph/*.java) +main_javas += $(graph_javas) test_classes := $(patsubst $(TST)/%java,$(CLZDIR)/test/%class,$(test_javas)) # These tests do not rely on the stdlib test_alone := com.seaofnodes.simple.BrainFuckTest com.seaofnodes.simple.MergeSortTest com.seaofnodes.simple.TypeTest @@ -100,6 +104,9 @@ endif default: $(default_targets) +.PHONY: build +build: $(CLZDIR)/main/.mtag + ####################################################### # Compile Java as a whole source set. javac tracks Java dependencies # internally, so compiling only the directly out-of-date .java files can leave |
