/usr/share/mk/buildtest.mk is in ros-mk 1.14.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # A target to test building of a package, all of its dependencies, and all
# of the things that depend on it
#
# For internal use only.
# HACK: assume that the package name is the name of the directory we're
# sitting in
pkg = $(shell basename $(PWD))
rosalldeps = $(shell rospack find rospack)/rosalldeps
deps = $(shell $(rosalldeps) -H 1 $(pkg))
rules = $(foreach d, $(deps), cd $(shell rospack find $(d)) && make &&) true;
.PHONY: build
build:
$(rules)
rules_test = $(foreach d, $(deps), cd $(shell rospack find $(d)) && make test &&) true;
.PHONY: build-test
build-test:
$(rules_test)
deps_all = $(shell $(rosalldeps) $(pkg))
rules_all = $(foreach d, $(deps_all), cd $(shell rospack find $(d)) && make &&) true;
.PHONY: build-all
build-all:
$(rules_all)
rules_all_test = $(foreach d, $(deps_all), cd $(shell rospack find $(d)) && make test &&) true;
.PHONY: build-test-all
build-test-all:
$(rules_all_test)
|