From 29fb671e69f90ad3b04c6fa8d746caf857f89e77 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Tue, 22 Sep 2026 11:25:05 -0700 Subject: Add shared graph viewer to all chapters --- build-support/early-chapter.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'build-support') diff --git a/build-support/early-chapter.mk b/build-support/early-chapter.mk index 939b7782..5f82b5b0 100644 --- a/build-support/early-chapter.mk +++ b/build-support/early-chapter.mk @@ -17,6 +17,11 @@ jars := lib/junit-4.12.jar$(SEP)lib/hamcrest-core-1.3.jar main_classes := $(CLZDIR)/main/.mtag test_classes := $(CLZDIR)/test/.ttag +include $(firstword $(wildcard ../graph/graph.mk graph/graph.mk)) + +.PHONY: build +build: $(main_classes) + $(main_classes): $(main_javas) @mkdir -p $(CLZDIR)/main javac $(JAVAC_ARGS) -d $(CLZDIR)/main $(main_javas) @@ -42,4 +47,4 @@ lib/hamcrest-core-1.3.jar: @mkdir -p lib wget -O $@ https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar -include ../build-support/chapter-release.mk +include $(firstword $(wildcard ../build-support/chapter-release.mk build-support/chapter-release.mk)) -- cgit v1.2.3