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 "\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 cleanall: clean @echo "\e[1m * Generated pdf-File...\e[0m" @rm -vf $(TARGET).pdf