Skip to content

Commit 065006c

Browse files
committed
Rename makefile target
1 parent 7d198e3 commit 065006c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/build-artifact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
echo "$PWD/toolchain/bin" >> $GITHUB_PATH
5353
- name: Build binaries
5454
run: |
55-
make build-artifact USE_PREBUILT=0
55+
make artifact USE_PREBUILT=0
5656
- name: Create tarball
5757
run: |
5858
tar -C build -zcf rv32emu-prebuilt.tar.gz linux-x64 riscv32

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ EXPECTED_puzzle = success in 2005 trials
243243
EXPECTED_fcalc = Performed 12 tests, 0 failures, 100% success rate.
244244
EXPECTED_pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086
245245

246-
check: $(BIN) build-artifact
246+
check: $(BIN) artifact
247247
$(Q)$(foreach e,$(CHECK_ELF_FILES),\
248248
$(PRINTF) "Running $(e) ... "; \
249249
if [ "$(shell $(BIN) $(OUT)/riscv32/$(e) | uniq)" = "$(strip $(EXPECTED_$(e))) inferior exit code 0" ]; then \
@@ -255,7 +255,7 @@ check: $(BIN) build-artifact
255255
)
256256

257257
EXPECTED_aes_sha1 = 1242a6757c8aef23e50b5264f5941a2f4b4a347e -
258-
misalign: $(BIN) build-artifact
258+
misalign: $(BIN) artifact
259259
$(Q)$(PRINTF) "Running uaes ... ";
260260
$(Q)if [ "$(shell $(BIN) -m $(OUT)/riscv32/uaes | $(SHA1SUM))" = "$(EXPECTED_aes_sha1)" ]; then \
261261
$(call notice, [OK]); \

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ The prebuilt executables are built from GNU/GCC v9 and [xPack GCC v14.2.0-1](htt
333333
To fetch the prebuilt executables, run the following command:
334334

335335
```shell
336-
$ make build-artifact
336+
$ make artifact
337337
```
338338

339-
Or, to compile the executables from the source, run:
339+
Or, to compile the executables from scratch, run:
340340

341341
```shell
342-
$ make build-artifact USE_PREBUILT=0
342+
$ make artifact USE_PREBUILT=0 [CROSS_COMPILE=<COMPILER_PREFIX>]
343343
```
344344

345345
Notice that the RISC-V cross-compiler is required to build the binary.

mk/artifact.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ ifeq ($(USE_PREBUILT),1)
3838
LATEST_RELEASE := $(shell wget -q https://api.github.com/repos/sysprog21/rv32emu-prebuilt/releases/latest -O- | grep -Po '(?<="tag_name": ").+(?=",)')
3939
endif
4040

41-
.PHONY: build-artifact
41+
.PHONY: artifact
4242

43-
build-artifact:
43+
artifact:
4444
ifeq ($(USE_PREBUILT),1)
4545
@echo "Fetching prebuilt executables in \"rv32emu-prebuilt\"..."
4646
@wget -q https://github.com/sysprog21/rv32emu-prebuilt/releases/download/$(LATEST_RELEASE)/rv32emu-prebuilt.tar.gz -O- | tar -C build -xz

0 commit comments

Comments
 (0)