-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 771 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 771 Bytes
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
# SPDX-FileCopyrightText: 2022 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0
all: build
.PHONY: build
build:
docker build -t p4lang/p4runtime-sh .
.PHONY: toc
toc:
@curl -s https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
@chmod +x gh-md-toc
@./gh-md-toc --insert --no-backup --hide-footer README.md
.PHONY: clean
clean:
rm -rf gh-md-toc
.PHONY: set-dev
set-dev:
@echo "Installing dev-dependencies..."
# Set up uv for Python dependency management.
# TODO: Consider using a system-provided package here.
sudo apt-get install -y curl
curl -LsSf https://astral.sh/uv/0.6.12/install.sh | sh
export PATH="${PATH}:${HOME}/.local/bin" && uv venv && uv tool update-shell && uv pip install -r requirements-dev.txt