Skip to content

Commit

Permalink
Examples: Make all the default target, map to build
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Jan 8, 2025
1 parent d82c33e commit 70f039b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/bring_your_own_fips202/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# (SPDX-License-Identifier: CC-BY-4.0)

.PHONY: build run clean
.DEFAULT_GOAL := all

# Append cross-prefix for cross compilation
# Remove or ignore for native builds
Expand Down Expand Up @@ -78,7 +79,7 @@ $(BINARY_NAME_FULL): $(ALL_SOURCE)
mkdir -p $(BUILD_DIR)
$(CC) $(CFLAGS) $(INC) $^ -o $@

all: run
all: build

build: $(BINARY_NAME_FULL)

Expand Down
3 changes: 2 additions & 1 deletion examples/custom_backend/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# (SPDX-License-Identifier: CC-BY-4.0)

.PHONY: build run clean
.DEFAULT_GOAL := all

# Append cross-prefix for cross compilation
# Remove or ignore for native builds
Expand Down Expand Up @@ -77,7 +78,7 @@ $(BINARY_NAME_FULL): $(ALL_SOURCE)
mkdir -p $(BUILD_DIR)
$(CC) $(CFLAGS) $(INC) $^ -o $@

all: run
all: build

build: $(BINARY_NAME_FULL)

Expand Down
3 changes: 2 additions & 1 deletion examples/mlkem_native_as_code_package/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# (SPDX-License-Identifier: CC-BY-4.0)

.PHONY: build run clean
.DEFAULT_GOAL := all

# Append cross-prefix for cross compilation
# Remove or ignore for native builds
Expand Down Expand Up @@ -75,7 +76,7 @@ $(BINARY_NAME_FULL): $(ALL_SOURCE)
mkdir -p $(BUILD_DIR)
$(CC) $(CFLAGS) $(INC) $^ -o $@

all: run
all: build

build: $(BINARY_NAME_FULL)

Expand Down
3 changes: 2 additions & 1 deletion examples/monolithic_build/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# (SPDX-License-Identifier: CC-BY-4.0)

.PHONY: build run clean
.DEFAULT_GOAL := all

# Append cross-prefix for cross compilation
# Remove or ignore for native builds
Expand Down Expand Up @@ -73,7 +74,7 @@ $(BINARY_NAME_FULL): $(ALL_SOURCE)
mkdir -p $(BUILD_DIR)
$(CC) $(CFLAGS) $(INC) $^ -o $@

all: run
all: build

build: $(BINARY_NAME_FULL)

Expand Down

0 comments on commit 70f039b

Please sign in to comment.