Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 73 lines (60 sloc) 1.973 kB
c1f6734 @pinard Replace LISP by Lisp, a bit everywhere.
authored
1 # Interface between Emacs Lisp and Python - Makefile.
9cc68f7 @pinard Pymacs.py.in replaces all of Pymacs/.
authored
2 # Copyright © 2001, 2002, 2003, 2012 Progiciels Bourbeau-Pinard inc.
add81b6 @pinard Switch to UTF-8
authored
3 # François Pinard <pinard@iro.umontreal.ca>, 2001.
01b53cf @pinard Version 0.13
authored
4
6a00ffb @pinard Consider case when Distutils is not available
authored
5 EMACS = emacs
6 PYTHON = python
ebd16b2 @pinard Simplify installation and testing, deprecate PYMACS_EMACS and PYMACS_…
authored
7 RST2LATEX = rst2latex
01b53cf @pinard Version 0.13
authored
8
3fa2a32 @pinard New p4 script (Poor Python Pre Processor). Use it!
authored
9 PYSETUP = $(PYTHON) setup.py
165fba0 @pinard Rename p4 to pppp, avoiding a clash with Perforce
authored
10 PPPP = $(PYTHON) pppp -C ppppconfig.py
6a00ffb @pinard Consider case when Distutils is not available
authored
11
b7ad900 @pinard Drive version from setup.py instead of from Makefile
authored
12 all:
9cc68f7 @pinard Pymacs.py.in replaces all of Pymacs/.
authored
13 $(PPPP) *.in contrib tests
b18c22e @pinard Version 0.19
authored
14 $(PYSETUP) build
01b53cf @pinard Version 0.13
authored
15
ebd16b2 @pinard Simplify installation and testing, deprecate PYMACS_EMACS and PYMACS_…
authored
16 check: clean-debug
9cc68f7 @pinard Pymacs.py.in replaces all of Pymacs/.
authored
17 $(PPPP) pymacs.el.in Pymacs.py.in tests
00633ec @pinard Generate documentation files at top level, instead of web/.
authored
18 cd tests && \
3fa2a32 @pinard New p4 script (Poor Python Pre Processor). Use it!
authored
19 EMACS="$(EMACS)" PYTHON="$(PYTHON)" \
ebd16b2 @pinard Simplify installation and testing, deprecate PYMACS_EMACS and PYMACS_…
authored
20 PYMACS_OPTIONS="-d debug-protocol -s debug-signals" \
6a00ffb @pinard Consider case when Distutils is not available
authored
21 $(PYTHON) pytest -f t $(TEST)
75c7726 @pinard Add "make check", and tests/ skeleton.
authored
22
b7ad900 @pinard Drive version from setup.py instead of from Makefile
authored
23 install:
9cc68f7 @pinard Pymacs.py.in replaces all of Pymacs/.
authored
24 $(PPPP) *.in Pymacs.py.in contrib tests
b18c22e @pinard Version 0.19
authored
25 $(PYSETUP) install
01b53cf @pinard Version 0.13
authored
26
3fa2a32 @pinard New p4 script (Poor Python Pre Processor). Use it!
authored
27 clean: clean-debug
4396d1b @pinard Makefile: Better clean
authored
28 rm -rf build* contrib/rebox/build
165fba0 @pinard Rename p4 to pppp, avoiding a clash with Perforce
authored
29 rm -f */*py.class */*.pyc pppp.pdf pymacs.pdf
9cc68f7 @pinard Pymacs.py.in replaces all of Pymacs/.
authored
30 $(PPPP) -c *.in contrib tests
4396d1b @pinard Makefile: Better clean
authored
31
ebd16b2 @pinard Simplify installation and testing, deprecate PYMACS_EMACS and PYMACS_…
authored
32 clean-debug:
33 rm -f tests/debug-protocol tests/debug-signals
34
165fba0 @pinard Rename p4 to pppp, avoiding a clash with Perforce
authored
35 pppp.pdf: pppp.rst.in
36 $(PPPP) pppp.rst.in
d3892b6 @pinard Added documentation for p4.
authored
37 rm -rf tmp-pdf
38 mkdir tmp-pdf
39 $(RST2LATEX) --use-latex-toc --input-encoding=UTF-8 \
165fba0 @pinard Rename p4 to pppp, avoiding a clash with Perforce
authored
40 pppp.rst tmp-pdf/pppp.tex
41 cd tmp-pdf && pdflatex pppp.tex
42 cd tmp-pdf && pdflatex pppp.tex
43 mv -f tmp-pdf/pppp.pdf $@
d3892b6 @pinard Added documentation for p4.
authored
44 rm -rf tmp-pdf
45
e30abe2 @pinard Makefile: the PDF was not always remade
authored
46 pymacs.pdf: pymacs.rst.in
165fba0 @pinard Rename p4 to pppp, avoiding a clash with Perforce
authored
47 $(PPPP) pymacs.rst.in
527731d @pinard Manual now in reST format. doc/ goes away.
authored
48 rm -rf tmp-pdf
49 mkdir tmp-pdf
f8185b1 @pinard Makefile: rst2latex parametrization
authored
50 $(RST2LATEX) --use-latex-toc --input-encoding=UTF-8 \
00633ec @pinard Generate documentation files at top level, instead of web/.
authored
51 pymacs.rst tmp-pdf/pymacs.tex
527731d @pinard Manual now in reST format. doc/ goes away.
authored
52 cd tmp-pdf && pdflatex pymacs.tex
53 cd tmp-pdf && pdflatex pymacs.tex
54 mv -f tmp-pdf/pymacs.pdf $@
55 rm -rf tmp-pdf
56
b7ad900 @pinard Drive version from setup.py instead of from Makefile
authored
57 # The following goals for the maintainer of the Pymacs Web site.
58
78cb6bf @pinard Makefile: Publication undusted
authored
59 ARCHIVES = web/src/archives
0a1668b @pinard Makefile: Refreshed for my current publishing setup
authored
60 VERSION = `grep '^version' setup.py | sed -e "s/'$$//" -e "s/.*'//"`
b7ad900 @pinard Drive version from setup.py instead of from Makefile
authored
61
165fba0 @pinard Rename p4 to pppp, avoiding a clash with Perforce
authored
62 publish: pppp.pdf pymacs.pdf pymacs.rst
78cb6bf @pinard Makefile: Publication undusted
authored
63 find -name '*~' | xargs rm -fv
b7ad900 @pinard Drive version from setup.py instead of from Makefile
authored
64 version=$(VERSION) && \
65 git archive --format=tar --prefix=Pymacs-$$version/ HEAD . \
78cb6bf @pinard Makefile: Publication undusted
authored
66 | gzip > $(ARCHIVES)/Pymacs-$$version.tar.gz
67 rm -f $(ARCHIVES)/Pymacs.tar.gz
3064c31 @pinard Makefile cosmetics
authored
68 version=$(VERSION) && \
78cb6bf @pinard Makefile: Publication undusted
authored
69 ln -s Pymacs-$$version.tar.gz $(ARCHIVES)/Pymacs.tar.gz
70 make-web -C web
71 synchro push alcyon -d entretien/pymacs
72 ssh alcyon 'make-web -C entretien/pymacs/web'
Something went wrong with that request. Please try again.