reqif/scripts/Makefile

31 lines
758 B
Makefile
Raw Normal View History

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