Makefiel extented with creating tex / pdf

This commit is contained in:
Dirk Alders 2025-08-12 18:27:47 +02:00
parent f0ad743611
commit f8d11701c8

View File

@ -7,16 +7,22 @@ SHELL = /usr/bin/bash
localhelp:
echo -e "Possible requirement options are:"
echo -e "\033[1;33m - tex - Create a local requirement specification tex file\e[0m"
echo -e "\033[1;33m - pdf - Create a local requirement specification pdf file\e[0m"
echo -e "\033[1;33m - view - Create a local requirement specification and view the document\e[0m"
echo -e "\033[1;33m - release - Create a local requirement specification and copy it to the release folder\e[0m $(MODULE_NAME)/_requirements_"
$(TARGET).tex: $(MODULE_NAME)/_requirements_/$(TARGET).py
venv/bin/python rspec/__init__.py $(MODULE_NAME)/_requirements_/$(TARGET).py > $(TARGET).tex
tex: $(TARGET).tex
$(TARGET).pdf: $(TARGET).tex
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
pdf: $(TARGET).pdf lightclean
release: $(TARGET).pdf lightclean
mkdir -p $(MODULE_NAME)/_requirements_
cp specification.pdf $(MODULE_NAME)/_requirements_