15 lines
362 B
Makefile
15 lines
362 B
Makefile
BUILD_DIR = tests/build
|
|
|
|
dist-tests: $(BUILD_DIR)/Makefile
|
|
@$(MAKE) -C $(BUILD_DIR) examples
|
|
@echo "All examples compiled successfully."
|
|
|
|
$(BUILD_DIR)/Makefile: tests/CMakeLists.txt tests/examples/CMakeLists.txt
|
|
@mkdir -p $(BUILD_DIR)
|
|
@cd $(BUILD_DIR) && PICO_SDK_PATH=$$HOME/Staging/pico-sdk cmake ..
|
|
|
|
clean:
|
|
@rm -rf $(BUILD_DIR)
|
|
|
|
.PHONY: dist-tests clean
|