@@ -2,10 +2,11 @@ pkg=sagetex
2
2
dtxs =$(wildcard * .dtx)
3
3
# the subdir stuff makes the tarball have the directory correct
4
4
srcs =example.tex README sagetex.ins
5
+ pyscripts =sagetex-run sagetex-extract sagetex-makestatic sagetex-remote
5
6
6
7
.SUFFIXES :
7
8
8
- all : sagetex.sty sagetex.py example.pdf $(pkg ) .pdf
9
+ all : sagetex.sty sagetex.py $( pyscripts ) $(pkg ) .pdf example .pdf
9
10
10
11
# just depend on the .ind file, since we'll make the .gls and .ind together;
11
12
# TEXOPTS is used by spkg-install to specify nonstopmode when building docs
@@ -35,14 +36,22 @@ sagetex.sty: py-and-sty.dtx $(pkg).dtx
35
36
sagetex.py : py-and-sty.dtx $(pkg ) .dtx
36
37
yes | latex $(TEXOPTS ) $(pkg ) .ins
37
38
38
- remote- sagetex.py : remote-sagetex.dtx
39
+ sagetex-remote .py : remote-sagetex.dtx
39
40
yes | latex $(TEXOPTS ) $(pkg ) .ins
40
41
41
- run- sagetex-if-necessary .py makestatic .py extractsagecode .py sagetexparse.py : scripts.dtx
42
+ sagetex-run .py sagetex-extract .py sagetex-makestatic .py: py-and-sty.dtx scripts.dtx
42
43
yes | latex $(TEXOPTS ) $(pkg ) .ins
43
44
45
+ % : % .py
46
+ cp -f $< $@
47
+ chmod +x $@
48
+
49
+ $(pypkg ) : $(pypkgfiles )
50
+ install -d sagetex
51
+ cp -f $(notdir $@ ) sagetex/
52
+
44
53
clean : auxclean
45
- rm -fr sage-plots-for-* E2.sobj * .pyc sagetex.tar.gz sagetex.py sagetex.pyc sagetex.sty makestatic.py sagetexparse .py extractsagecode.py dist MANIFEST remote-sagetex.py auto * _doctest.sage * _doctest.sage.py example-* .table run-sagetex-if-necessary.py __pycache__
54
+ rm -fr sage-plots-for-* E2.sobj * .pyc sagetex.tar.gz sagetex.py $( pypkgfiles ) $( pyscripts ) $( addsuffix .py, $( pyscripts ) ) sagetex.sty dist MANIFEST remote-sagetex.py auto * _doctest.sage * _doctest.sage.py example-* .table __pycache__
46
55
47
56
auxclean :
48
57
/bin/bash -c " rm -f {$( pkg) ,example}.{glo,gls,aux,out,toc,dvi,pdf,ps,log,ilg,ind,idx,fdb_latexmk,sagetex.*}"
54
63
./test
55
64
56
65
# make a source distribution, used for building the spkg
57
- dist : sagetex.sty
66
+ dist : sagetex.sty $( pypkg ) $( pyscripts )
58
67
python setup.py sdist --formats=gztar
0 commit comments