This repository was archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
42 lines (32 loc) · 1.43 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (C) 2018 SCARV project <[email protected]>
#
# Use of this source code is restricted per the MIT license, a copy of which
# can be found at https://opensource.org/licenses/MIT (or should be included
# as LICENSE.txt within the associated archive or repository).
ifndef REPO_HOME
$(error "execute 'source ./bin/conf.sh' to configure environment")
endif
ifndef REPO_VERSION
$(error "execute 'source ./bin/conf.sh' to configure environment")
endif
# =============================================================================
%-doc :
@make --directory="${REPO_HOME}/doc" ${*}
%-docker :
@make --directory="${REPO_HOME}/src/docker" ${*}
%-toolchain :
@make --directory="${REPO_HOME}/src/toolchain" ${*}
# -----------------------------------------------------------------------------
doxygen : ${REPO_HOME}/Doxyfile
@doxygen ${<}
spotless :
@rm --force --recursive ${REPO_HOME}/build/*
opcodes:
cat $(REPO_HOME)/extern/riscv-opcodes/opcodes \
$(REPO_HOME)/extern/riscv-opcodes/opcodes-xcrypto \
| python3 $(REPO_HOME)/bin/parse_opcodes.py -check
cat $(REPO_HOME)/extern/riscv-opcodes/opcodes-xcrypto \
| python3 $(REPO_HOME)/bin/parse_opcodes.py -c > build/opcodes-xcrypto.h
cat $(REPO_HOME)/extern/riscv-opcodes/opcodes-xcrypto \
| python3 $(REPO_HOME)/extern/riscv-opcodes/parse_opcodes -verilog > build/opcodes-xcrypto.v
# =============================================================================