@@ -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,24 @@ 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
41
+ mv -f sagetex-remote.py sagetex-remote
42
+ chmod +x sagetex-remote
40
43
41
- run- sagetex-if-necessary .py makestatic .py extractsagecode .py sagetexparse.py : scripts.dtx
44
+ sagetex-run .py sagetex-extract .py sagetex-makestatic .py: py-and-sty.dtx scripts.dtx
42
45
yes | latex $(TEXOPTS ) $(pkg ) .ins
43
46
47
+ % : % .py
48
+ cp -f $< $@
49
+ chmod +x $@
50
+
51
+ $(pypkg ) : $(pypkgfiles )
52
+ install -d sagetex
53
+ cp -f $(notdir $@ ) sagetex/
54
+
44
55
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__
56
+ rm -fr sage-plots-for-* E2.sobj * .pyc sagetex.tar.gz $( pypkg ) $( pypkgfiles ) $( pyscripts ) sagetex.sty dist MANIFEST remote-sagetex.py auto * _doctest.sage * _doctest.sage.py example-* .table __pycache__
46
57
47
58
auxclean :
48
59
/bin/bash -c " rm -f {$( pkg) ,example}.{glo,gls,aux,out,toc,dvi,pdf,ps,log,ilg,ind,idx,fdb_latexmk,sagetex.*}"
54
65
./test
55
66
56
67
# make a source distribution, used for building the spkg
57
- dist : sagetex.sty
68
+ dist : sagetex.sty $( pypkg ) $( pyscripts )
58
69
python setup.py sdist --formats=gztar
0 commit comments