Don't depend on YARM repo in Makefile
This commit is contained in:
parent
dae3b01ebc
commit
99e164ed08
1 changed files with 1 additions and 26 deletions
27
Makefile
27
Makefile
|
@ -1,35 +1,10 @@
|
||||||
ifndef YARM_DIRECTORY
|
|
||||||
$(error YARM_DIRECTORY must be set to the root directory of the YARM SoC)
|
|
||||||
endif
|
|
||||||
|
|
||||||
VHDL_DIR = $(YARM_DIRECTORY)/vhdl
|
|
||||||
|
|
||||||
CODEDIR = code
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: main.pdf
|
all: main.pdf
|
||||||
|
|
||||||
$(CODEDIR):
|
|
||||||
mkdir -p $@
|
|
||||||
|
|
||||||
define headers_template =
|
|
||||||
$1: $2
|
|
||||||
mkdir -p $1
|
|
||||||
./generate_entity_headers.py --skip-missing --dest-dir $1 $2
|
|
||||||
|
|
||||||
HEADER_DIRS += $1
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call headers_template,sections/core/entities/,$(wildcard $(VHDL_DIR)/core/*.vhd)))
|
|
||||||
|
|
||||||
.PHONY: entity_headers
|
|
||||||
entity_headers: $(HEADER_DIRS)
|
|
||||||
|
|
||||||
.PHONY: main.pdf
|
.PHONY: main.pdf
|
||||||
main.pdf: $(HEADER_DIRS) main.tex
|
main.pdf: main.tex
|
||||||
latexmk --pdflua --pdflualatex="lualatex -interaction=nonstopmode --shell-escape" --use-make main.tex
|
latexmk --pdflua --pdflualatex="lualatex -interaction=nonstopmode --shell-escape" --use-make main.tex
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(HEADER_DIRS)
|
|
||||||
latexmk -C
|
latexmk -C
|
||||||
|
|
Loading…
Reference in a new issue