File tree Expand file tree Collapse file tree 3 files changed +35
-30
lines changed Expand file tree Collapse file tree 3 files changed +35
-30
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/python
2
+
3
+ import sys
4
+ import os
5
+ from makefile_builder import MakefileBuilder
6
+ sys .path .append (os .path .abspath (os .path .join (os .path .dirname (__file__ ), os .getcwd ())))
7
+
8
+ from conf import intersphinx_mapping
9
+
10
+ m = MakefileBuilder ()
11
+
12
+ def intersphinx_builders ():
13
+ for i in intersphinx_mapping :
14
+ output = '$(output)/%s.inv' % i
15
+ m .target (output , block = i )
16
+ m .job ('@$(PYTHONBIN) bin/intersphinx-download.py $@ ' + intersphinx_mapping [i ][0 ] + 'objects.inv' , block = i )
17
+ m .append_var ('intersphinx-libraries' , output , block = i )
18
+ m .newline (block = i )
19
+
20
+ m .newline (block = 'control' )
21
+ m .target ('intersphinx' , '$(intersphinx-libraries)' , block = 'control' )
22
+ m .target ('clean-intersphinx' , block = 'control' )
23
+ m .job ('rm -f $(intersphinx-libraries)' , block = 'control' )
24
+ m .msg ('[intersphinx]: all existing intersphinx inv files removed.' , block = 'control' )
25
+ m .target ('.PHONY' , 'intersxpinx clean-intersphinx $(intersphinx-libraries)' , block = 'control' )
26
+
27
+ def main ():
28
+ intersphinx_builders ()
29
+ m .write (sys .argv [1 ])
30
+ print ('[meta-build]: built "' + sys .argv [1 ] + '" to specify intersphinx downloads.' )
31
+
32
+ if __name__ == '__main__' :
33
+ main ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 29
29
@echo " pdfs generates pdfs."
30
30
31
31
# ############ makefile includes #############
32
- include bin/makefile.intersphinx
33
32
include bin/makefile.compatibility
34
33
include bin/makefile.content
35
34
include bin/makefile.push
@@ -41,13 +40,14 @@ include bin/makefile.push
41
40
-include $(output ) /makefile.texinfo
42
41
-include $(output ) /makefile.tables
43
42
-include $(output ) /makefile.links
43
+ -include $(output ) /makefile.intersphinx
44
44
-include $(output ) /makefile.sphinx
45
45
-include $(output ) /makefile.releases
46
46
-include $(output ) /makefile.errors
47
47
-include $(output ) /makefile.migrations
48
48
-include $(output ) /makefile.sphinx-migration
49
49
50
- $(output ) /makefile.% :bin/makefile-builder/% .py bin/makefile_builder.py bin/builder_data.py
50
+ $(output ) /makefile.% :bin/makefile-builder/% .py bin/makefile_builder.py bin/builder_data.py conf.py
51
51
@mkdir -p $(output )
52
52
@$(PYTHONBIN ) bin/makefile-builder/$(subst .,,$(suffix $@ ) ) .py $@
53
53
You can’t perform that action at this time.
0 commit comments