12345678910111213141516171819202122232425262728293031 |
- TARGET=specification
- MODULE_NAME := $(shell basename `dirname \`pwd\``)
-
-
- .PHONY: all tex pdf clean cleanall
-
- all: pdf clean
-
- tex:
- python3 reqif/scripts/parse.py $(TARGET).reqif
-
- pdf: tex
- latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
-
- release: pdf clean
- mkdir -p ../pylibs/$(MODULE_NAME)/_requirements_
- cp specification.pdf ../pylibs/$(MODULE_NAME)/_requirements_
-
- view: pdf clean
- xdg-open $(TARGET).pdf
-
- clean:
- @echo -e "\033[1;33mCleaning up requirements...\033[00m"
- @echo -e "\e[1m * Generated latex files...\e[0m"
- @latexmk -c -f $(TARGET).tex 1> /dev/null 2> /dev/null
- @echo -e "\e[1m * Generated TeX-File...\e[0m"
- @rm -vf *.tex
-
- cleanall: clean
- @echo -e "\e[1m * Generated pdf-File...\e[0m"
- @rm -vf $(TARGET).pdf
|