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,4 +1,6 @@
1 1
 TARGET=specification
2
+MODULE_NAME := $(shell basename `dirname \`pwd\``)
3
+
2 4
 
3 5
 .PHONY: all tex pdf clean cleanall
4 6
 
@@ -10,6 +12,13 @@ tex:
10 12
 pdf: tex
11 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 22
 clean:
14 23
 	latexmk -c -f $(TARGET).tex
15 24
 	rm -f *~ *.tex

Loading…
Cancel
Save