forked from ros-infrastructure/rep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (20 loc) · 618 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# targets to generate an index, HTML files and upload them to the server
REP2HTML=rep2html.py
PYTHON=python3
.SUFFIXES: .rst .html
.rst.html:
@$(PYTHON) $(REP2HTML) $<
REPS=$(filter-out rep-0000.rst,$(wildcard rep-????.rst))
SUBDIRS=$(wildcard rep-????)
TARGETS=$(REPS:.rst=.html) rep-0000.html
all: rep-0000.rst $(TARGETS) xsdvalid
$(TARGETS): rep2html.py
rep-0000.rst: $(REPS)
$(PYTHON) genrepindex.py .
xsdvalid:
$(PYTHON) xsdValid.py
clean:
-rm *.html
-rm rep-0000.rst
upload: all
rsync -r README.txt *.html mermaid.js css rep-0000.rst $(SUBDIRS) [email protected]:/var/www/www.ros.org/reps