Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonnatan Mendoza Escobar
svhd_lib_modules_make
Commits
7a8e7b04
Commit
7a8e7b04
authored
May 02, 2022
by
Jonnatan Mendoza Escobar
Browse files
Initial commit, adding first version of makefile
parent
1cf808a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
0 → 100644
View file @
7a8e7b04
TEROSHDL_DOC
?=
/opt/colibri/bin/teroshdl-hdl-documenter
VTREE
?=
/bin/vtree
CURRENT_PATH
=
$(
shell
pwd
)
LIB_ROOT_PATH
?=
$(CURRENT_PATH)
/../../
LOCAL_SRC_FOLDER
=
$(
shell
pwd
)
/src
DOC_FOLDER
=
$(
shell
pwd
)
/doc
MODULES_LIST
?=
$(
shell
$(VTREE)
get_modules
$(LOCAL_SRC_FOLDER)
)
define
mtree_func
$(VTREE)
mtree
$(LIB_ROOT_PATH)
$(1)
-v
1;
endef
define
minsts_func
$(VTREE)
minsts
$(LIB_ROOT_PATH)
$(1)
-v
1;
endef
define
print_src
echo
" [+] $(1)"
;
endef
docs
:
$(TEROSHDL_DOC)
-i
src
--outpath
doc
--symbol_verilog
"!"
--self_contained
mtree
:
@
(
$(
call
print_src,
"LIB_PATH: "
$(LIB_ROOT_PATH)
)
)
@
(
$(
foreach
TOP_MODULE,
$(MODULES_LIST)
,
$(
call
mtree_func,
$(TOP_MODULE)
))
)
minsts
:
@
(
$(
call
print_src,
"LIB_PATH: "
$(LIB_ROOT_PATH)
)
)
@
(
$(
foreach
TOP_MODULE,
$(MODULES_LIST)
,
$(
call
minsts_func,
$(TOP_MODULE)
))
)
clean
:
rm
-f
$(DOC_FOLDER)
/
*
.html
rm
-f
*
.dep
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment