File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 4
4
# Not really important, but convenient.
5
5
6
6
PEP2HTML =pep2html.py
7
+ PEP2RSS =pep2rss.py
8
+ GENPEPINDEX =genpepindex.py
9
+
10
+ PEPDIR =peps
11
+ OUTPUTDIR =output
7
12
8
13
PYTHON =python
9
14
@@ -12,23 +17,23 @@ PYTHON=python
12
17
.txt.html :
13
18
@$(PYTHON ) $(PEP2HTML ) $<
14
19
15
- TARGETS =$(patsubst % .txt,% .html,$(wildcard peps /pep-????.txt) ) output /pep-0000.html
20
+ TARGETS =$(patsubst % .txt,% .html,$(wildcard $( PEPDIR ) /pep-????.txt) ) $( OUTPUTDIR ) /pep-0000.html
16
21
17
22
all : pep-0000.txt $(TARGETS )
18
23
19
- $(TARGETS ) : pep2html.py
24
+ $(TARGETS ) : $( PEP2HTML )
20
25
21
- pep-0000.txt : $(wildcard peps /pep-????.txt) $(wildcard pep0/* .py)
22
- $(PYTHON ) genpepindex.py peps/
26
+ pep-0000.txt : $(wildcard $( PEPDIR ) /pep-????.txt) $(wildcard $( PEPDIR ) / pep0/* .py)
27
+ $(PYTHON ) $( GENPEPINDEX ) $( PEPDIR )
23
28
24
29
rss :
25
- $(PYTHON ) pep2rss.py peps/
30
+ $(PYTHON ) $( PEP2RSS ) $( PEPDIR )
26
31
27
32
install :
28
33
echo " Installing is not necessary anymore. It will be done in post-commit."
29
34
30
35
clean :
31
- -rm -r output/
36
+ -rm -r $( OUTPUTDIR )
32
37
33
38
update :
34
39
git pull https://github.com/python/peps.git
You can’t perform that action at this time.
0 commit comments