Skip to content

Commit d18a0c0

Browse files
committed
Run postvisit.mk if present
This patch was distilled from PR 147. References: * #147 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 5cdd38c commit d18a0c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/illustrations/src/illustration-nosrc.mk

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ all: \
8585
test ! -r figures/Makefile \
8686
|| $(MAKE) \
8787
--directory figures
88+
test ! -r postvisit.mk \
89+
|| $(MAKE) \
90+
--file postvisit.mk
8891

8992
.PHONY: \
9093
check-pytest
@@ -335,6 +338,10 @@ check: \
335338
$(example_name)_validation-develop-2.0.0.ttl \
336339
$(example_name)_validation-unstable.ttl \
337340
$(example_name)_validation-unstable-2.0.0.ttl
341+
test ! -r postvisit.mk \
342+
|| $(MAKE) \
343+
--file postvisit.mk \
344+
check
338345

339346
# Run pytest tests only if any are written.
340347
# (Pytest exits in an error state if called with no tests found.)
@@ -348,6 +355,10 @@ check-pytest: \
348355
)
349356

350357
clean:
358+
@test ! -r postvisit.mk \
359+
|| $(MAKE) \
360+
--file postvisit.mk \
361+
clean
351362
@rm -f \
352363
.drafting.ttl.*.log \
353364
figures/*.dot \

0 commit comments

Comments
 (0)