-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
95 lines (83 loc) · 4.43 KB
/
Makefile.am
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
SUBDIRS = src unittest bin
EXTRA_DIST = README ChangeLog AUTHORS COPYING INSTALL NEWS sumo.doxyconf
doc: pydoc doxygen wikidump
pydoc:
rm -rf docs/pydoc
mkdir docs/pydoc
cd docs/pydoc && \
for i in `find ../../tools/traci ../../tools/sumolib -name "*.py" -not -executable | sed 's,../../tools/,,;s,/,.,g;s,.py,,;s,.__init__,,'`; do \
PYTHONPATH="../../tools" python -c "import $$i, pydoc; pydoc.writedoc($$i)"; \
done
doxygen:
rm -rf docs/doxygen
mkdir docs/doxygen
doxygen sumo.doxyconf &> doxygen.log
wikidump:
cd docs/wiki && ../../tools/build/buildHTMLDocs.py && cp *.png *.css docs
man:
rm -rf docs/man
mkdir docs/man
help2man -N -n "A microscopic road traffic simulation" bin/sumo > docs/man/sumo.1
help2man -N -n "Builds vehicle routes for SUMO using detector values" bin/dfrouter > docs/man/dfrouter.1
help2man -N -n "Shortest path router and DUE computer for the microscopic road traffic simulation SUMO" bin/duarouter > docs/man/duarouter.1
help2man -N -n "Router for the microscopic road traffic simulation SUMO based on junction turning ratios" bin/jtrrouter > docs/man/jtrrouter.1
help2man -N -n "Generates routes of persons throughout a day for the microscopic road traffic simulation SUMO" bin/activitygen > docs/man/activitygen.1
help2man -N -n "Importer of O/D-matrices for the road traffic simulation SUMO" bin/od2trips > docs/man/od2trips.1
help2man -N -n "Road network importer / builder for the road traffic simulation SUMO" bin/netconvert > docs/man/netconvert.1
help2man -N -n "Road network generator for the microscopic road traffic simulation SUMO" bin/netgenerate > docs/man/netgenerate.1
help2man -N -n "Importer of polygons and POIs for the road traffic simulation SUMO" bin/polyconvert > docs/man/polyconvert.1
help2man -N -n "TraCITestClient for the road traffic simulation SUMO" bin/TraCITestClient > docs/man/TraCITestClient.1
dist-hook: abs_distdir=`pwd`/$(distdir)
dist-hook:
cd $(srcdir) ; \
if test -d tests; then \
for f in `find build tools tests/complex/tutorial -name .svn -prune -o -type d -print`; do mkdir -p $(abs_distdir)/$$f; done ; \
mkdir -p $(abs_distdir)/docs ; \
find tests/complex/tutorial -regex ".*\.\(xml\|txt\|sumocfg\|netccfg\|py\)" -print0 | xargs -0 cp -v --parents --target-directory $(abs_distdir) ; \
mv -v ${abs_distdir}/tests/complex/tutorial $(abs_distdir)/docs ; \
rm -rf $(abs_distdir)/tests ; \
tests/extractTest.py -i -f tests/examples.txt -o $(abs_distdir)/docs ; \
find build -regex ".*\.\(vcproj\|vsprops\|vcxproj\|vcxproj\.filters\|props\|sln\|spec\)" -print0 | xargs -0 cp --parents --target-directory $(abs_distdir) ; \
( svn export --force tools $(distdir)/tools && cd $(distdir) && find tools -type f > ../tools_filelist; true ) ; \
xargs cp --parents --target-directory $(abs_distdir) < tools_filelist ; \
cp tools_filelist $(abs_distdir) ; \
fi;
dist-doc: doc
cd $(srcdir)
$(am__remove_distdir)
mkdir -p $(distdir)/docs
cp -r docs/wiki/docs $(distdir)/docs/userdoc
find tests/complex/tutorial -regex ".*\.\(xml\|txt\|sumocfg\|netccfg\|py\)" -print0 | xargs -0 cp --parents --target-directory $(distdir)
mv $(distdir)/tests/complex/tutorial $(distdir)/docs
rmdir $(distdir)/tests/complex
rmdir $(distdir)/tests
svn export docs/internet/xsd $(distdir)/docs/xsd
cp -r docs/pydoc docs/doxygen $(distdir)/docs
tests/extractTest.py -i -f tests/examples.txt -o $(distdir)/docs
tar -czf $(PACKAGE)-doc-$(VERSION).tar.gz $(distdir)
rm -f $(PACKAGE)-doc-$(VERSION).zip
zip -r $(PACKAGE)-doc-$(VERSION).zip $(distdir)
$(am__remove_distdir)
dist-tests:
cd $(srcdir)
$(am__remove_distdir)
mkdir $(distdir)
find tests -name .svn -prune -o -type f -print | xargs cp --parents -t $(distdir)
tar -czf $(PACKAGE)-tests-$(VERSION).tar.gz $(distdir)
$(am__remove_distdir)
dist-complete: dist dist-doc dist-tests
mv $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-src-$(VERSION).tar.gz
mv $(PACKAGE)-$(VERSION).zip $(PACKAGE)-src-$(VERSION).zip
tar -xzf $(PACKAGE)-doc-$(VERSION).tar.gz $(distdir)
tar -xzf $(PACKAGE)-tests-$(VERSION).tar.gz $(distdir)
tar -xzf $(PACKAGE)-src-$(VERSION).tar.gz $(distdir)
tar -czf $(PACKAGE)-all-$(VERSION).tar.gz $(distdir)
$(am__remove_distdir)
examples:
tests/extractTest.py -f tests/examples.txt
sumo$(EXEEXT) netconvert$(EXEEXT) \
netgenerate$(EXEEXT) duarouter$(EXEEXT) \
dfrouter$(EXEEXT) jtrrouter$(EXEEXT) \
od2trips$(EXEEXT) polyconvert$(EXEEXT) \
sumo-gui$(EXEEXT):
$(MAKE) -C src $@