Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6eab2fb

Browse files
committed
Clean up some of the definitions related to info generation.
1 parent 8a666e7 commit 6eab2fb

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Doc/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ DOCDESTDIR= $LIBDEST/doc
6464
EMACS= emacs
6565
PYTHON= python
6666
MAKEINFO= makeinfo
67-
PARTPARSE= $(PYTHON) ./partparse.pyc
67+
PARTPARSEOBJ= partparse.pyc
68+
PARTPARSE= $(PYTHON) $(PARTPARSEOBJ)
6869

6970
# Ideally, you shouldn't need to edit beyond this point
7071

@@ -170,7 +171,10 @@ api.dvi: api.tex
170171
# The remaining part of the Makefile is concerned with various
171172
# conversions, as described above. See also the README file.
172173

173-
.SUFFIXES: .py .pyc
174+
.SUFFIXES: .py .pyc .pyo
175+
176+
.py.pyo:
177+
$(PYTHON) -O -c "import $*"
174178

175179
.py.pyc:
176180
$(PYTHON) -c "import $*"
@@ -182,7 +186,7 @@ api.dvi: api.tex
182186
# and makeinfo can't handle a group with a leading @command. But at least
183187
# the info file gets generated.
184188

185-
lib1.texi: lib*.tex texipre.dat texipost.dat partparse.pyc
189+
lib1.texi: lib*.tex texipre.dat texipost.dat $(PARTPARSEOBJ)
186190
$(PARTPARSE) -o lib1.texi `./whichlibs`
187191
sed 's/"{\\}n{\\}n/"\\n\\n/' lib1.texi >lib2.texi
188192
mv lib2.texi lib1.texi
@@ -274,7 +278,7 @@ tarballs: tarpdf tarps tarhtml
274278
# - sources: .tex, .bib, .sty
275279
# - useful results: .dvi, .pdf, .ps, .texi, .info
276280
clean: l2hclean
277-
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
281+
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.py[co]
278282
rm -f *.bak *.orig lib1.texi
279283
rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz
280284
rm -f pdf-$(VERSION).tar.gz

0 commit comments

Comments
 (0)