Explorar el Código

vie and release added to Makefile

master
Dirk Alders hace 3 años
padre
commit
b3b2e15330
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9
    0
      scripts/Makefile

+ 9
- 0
scripts/Makefile Ver fichero

@@ -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…
Cancelar
Guardar