forked from TexasInstruments/processor-sdk-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 659 Bytes
/
Makefile
File metadata and controls
23 lines (19 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SPDX-License-Identifier: MIT
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com
ifeq ($(CONTAINER_TOOL),)
$(info CONTAINER_TOOL unset, checking if docker is present...)
ifneq ($(shell which docker 2> /dev/null),)
$(info Using docker for build...)
CONTAINER_TOOL := docker
else ifneq ($(shell which podman 2> /dev/null),)
$(info Using podman for build...)
CONTAINER_TOOL := podman
endif
endif
.PHONY: all setup
all: Dockerfile setup
$(CONTAINER_TOOL) build . -t texasinstruments/processor-sdk-doc \
$(BUILD_ARGS)
setup: requirements.txt
requirements.txt: ../requirements.txt
cp -ar ../requirements.txt .