reqif/scripts/Makefile

27 lines
534 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-07 10:14:26 +01:00
latexmk -c -f $(TARGET).tex
rm -f *~ *.tex
2021-03-07 10:14:26 +01:00
cleanall: clean
rm $(TARGET).pdf