Browse Source

vie and release added to Makefile

master
Dirk Alders 3 years ago
parent
commit
b3b2e15330
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      scripts/Makefile

+ 9
- 0
scripts/Makefile View File

1
 TARGET=specification
1
 TARGET=specification
2
+MODULE_NAME := $(shell basename `dirname \`pwd\``)
3
+
2
 
4
 
3
 .PHONY: all tex pdf clean cleanall
5
 .PHONY: all tex pdf clean cleanall
4
 
6
 
10
 pdf: tex
12
 pdf: tex
11
 	latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
13
 	latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
12
 
14
 
15
+release: pdf clean
16
+	mkdir -p ../pylibs/$(MODULE_NAME)/_requirements_
17
+	cp specification.pdf ../pylibs/$(MODULE_NAME)/_requirements_
18
+
19
+view: pdf clean
20
+	xdg-open $(TARGET).pdf
21
+
13
 clean:
22
 clean:
14
 	latexmk -c -f $(TARGET).tex
23
 	latexmk -c -f $(TARGET).tex
15
 	rm -f *~ *.tex
24
 	rm -f *~ *.tex

Loading…
Cancel
Save