Skip to content

Commit b3da7aa

Browse files
committed
Make 'patch' a proper prerequisite of the libdgl build
The patch step modifies lib/DPF/dgl/Widget.hpp (adds 'virtual' to setVisible), and the dpf target compiles libdgl from those headers. Previously 'all: patch build generate_ttl' listed them as siblings, which serial make handles correctly (prerequisites processed left-to-right) but parallel make does not: with -j N, patch and dpf could run concurrently and libdgl could be built against unpatched headers. Add 'dpf: patch' to express the actual dependency, and drop 'patch' from all's prereq list since it's now reached transitively via all -> build -> common -> dpf -> patch. This lets downstream packagers run plain 'make -j N' without an explicit 'make patch' first. Verified by full parallel rebuild from a clean tree: Widget.hpp ends up patched, libdgl builds against patched headers, all four plugin formats build, TTL files generate.
1 parent a62b02e commit b3da7aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/dpf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
all: patch build generate_ttl
1+
all: build generate_ttl
22

33
build: common DigiDrie
44

@@ -67,7 +67,7 @@ datadir ?= $(datarootdir)
6767
docdir ?= $(datarootdir)/doc
6868

6969
.PHONY: dpf
70-
dpf:
70+
dpf: patch
7171
$(MAKE) -C lib/DPF HAVE_CAIRO=$(HAVE_CAIRO) USE_WEB_VIEW=false dgl utils/lv2_ttl_generator
7272

7373
.PHONY: common

0 commit comments

Comments
 (0)