Python Library REQ-IF
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile 771B

12345678910111213141516171819202122232425262728293031
  1. TARGET=specification
  2. MODULE_NAME := $(shell basename `dirname \`pwd\``)
  3. .PHONY: all tex pdf clean cleanall
  4. all: pdf clean
  5. tex:
  6. python3 reqif/scripts/parse.py $(TARGET).reqif
  7. pdf: tex
  8. latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
  9. release: pdf clean
  10. mkdir -p ../pylibs/$(MODULE_NAME)/_requirements_
  11. cp specification.pdf ../pylibs/$(MODULE_NAME)/_requirements_
  12. view: pdf clean
  13. xdg-open $(TARGET).pdf
  14. clean:
  15. @echo -e "\033[1;33mCleaning up requirements...\033[00m"
  16. @echo -e "\e[1m * Generated latex files...\e[0m"
  17. @latexmk -c -f $(TARGET).tex 1> /dev/null 2> /dev/null
  18. @echo -e "\e[1m * Generated TeX-File...\e[0m"
  19. @rm -vf *.tex
  20. cleanall: clean
  21. @echo -e "\e[1m * Generated pdf-File...\e[0m"
  22. @rm -vf $(TARGET).pdf