Skip to content

Commit

Permalink
Revert "rm fastly-edge-assignments/Makefile"
Browse files Browse the repository at this point in the history
This reverts commit 9131130.
  • Loading branch information
leoromanovsky committed Dec 11, 2024
1 parent 82668b8 commit a30a882
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions fastly-edge-assignments/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

WASM_TARGET=wasm32-wasi
BUILD_DIR=target/$(WASM_TARGET)/release
WASM_FILE=$(BUILD_DIR)/$(FASTLY_PACKAGE).wasm

# Help target for easy documentation
.PHONY: help
help:
@echo "Available targets:"
@echo " build - Build the WASM target"
@echo " test - Run unit and integration tests"
@echo " clean - Clean all build artifacts"

.PHONY: clean
clean:
rm -rf bin pkg

.PHONY: build
build:
rustup target add $(WASM_TARGET)
fastly compute build

.PHONY: test
test:
cargo nextest run

0 comments on commit a30a882

Please sign in to comment.