1EXTRAFILES = $(srcdir)/tmseries30.html $(srcdir)/geodseries30.html
2
3FIGURES = \
4	$(srcdir)/gauss-krueger-graticule.png \
5	$(srcdir)/thompson-tm-graticule.png \
6	$(srcdir)/gauss-krueger-convergence-scale.png \
7	$(srcdir)/gauss-schreiber-graticule-a.png \
8	$(srcdir)/gauss-krueger-graticule-a.png \
9	$(srcdir)/thompson-tm-graticule-a.png \
10	$(srcdir)/gauss-krueger-error.png \
11	$(srcdir)/meridian-measures.png \
12	$(srcdir)/normal-gravity-potential-1.svg \
13	$(srcdir)/vptree.gif
14
15HPPFILES = \
16	$(top_srcdir)/include/GeographicLib/Accumulator.hpp \
17	$(top_srcdir)/include/GeographicLib/AlbersEqualArea.hpp \
18	$(top_srcdir)/include/GeographicLib/AzimuthalEquidistant.hpp \
19	$(top_srcdir)/include/GeographicLib/CassiniSoldner.hpp \
20	$(top_srcdir)/include/GeographicLib/Constants.hpp \
21	$(top_srcdir)/include/GeographicLib/DMS.hpp \
22	$(top_srcdir)/include/GeographicLib/Ellipsoid.hpp \
23	$(top_srcdir)/include/GeographicLib/EllipticFunction.hpp \
24	$(top_srcdir)/include/GeographicLib/GARS.hpp \
25	$(top_srcdir)/include/GeographicLib/GeoCoords.hpp \
26	$(top_srcdir)/include/GeographicLib/Geocentric.hpp \
27	$(top_srcdir)/include/GeographicLib/Geodesic.hpp \
28	$(top_srcdir)/include/GeographicLib/GeodesicExact.hpp \
29	$(top_srcdir)/include/GeographicLib/GeodesicLine.hpp \
30	$(top_srcdir)/include/GeographicLib/GeodesicLineExact.hpp \
31	$(top_srcdir)/include/GeographicLib/Geohash.hpp \
32	$(top_srcdir)/include/GeographicLib/Geoid.hpp \
33	$(top_srcdir)/include/GeographicLib/Georef.hpp \
34	$(top_srcdir)/include/GeographicLib/Gnomonic.hpp \
35	$(top_srcdir)/include/GeographicLib/LambertConformalConic.hpp \
36	$(top_srcdir)/include/GeographicLib/LocalCartesian.hpp \
37	$(top_srcdir)/include/GeographicLib/Math.hpp \
38	$(top_srcdir)/include/GeographicLib/MGRS.hpp \
39	$(top_srcdir)/include/GeographicLib/OSGB.hpp \
40	$(top_srcdir)/include/GeographicLib/PolarStereographic.hpp \
41	$(top_srcdir)/include/GeographicLib/PolygonArea.hpp \
42	$(top_srcdir)/include/GeographicLib/TransverseMercatorExact.hpp \
43	$(top_srcdir)/include/GeographicLib/TransverseMercator.hpp \
44	$(top_srcdir)/include/GeographicLib/UTMUPS.hpp
45
46ALLSOURCES = \
47	$(top_srcdir)/src/AlbersEqualArea.cpp \
48	$(top_srcdir)/src/AzimuthalEquidistant.cpp \
49	$(top_srcdir)/src/CassiniSoldner.cpp \
50	$(top_srcdir)/src/DMS.cpp \
51	$(top_srcdir)/src/Ellipsoid.cpp \
52	$(top_srcdir)/src/EllipticFunction.cpp \
53	$(top_srcdir)/src/GARS.cpp \
54	$(top_srcdir)/src/GeoCoords.cpp \
55	$(top_srcdir)/src/Geocentric.cpp \
56	$(top_srcdir)/src/Geodesic.cpp \
57	$(top_srcdir)/src/GeodesicLine.cpp \
58	$(top_srcdir)/src/Geohash.cpp \
59	$(top_srcdir)/src/Geoid.cpp \
60	$(top_srcdir)/src/Georef.cpp \
61	$(top_srcdir)/src/Gnomonic.cpp \
62	$(top_srcdir)/src/LambertConformalConic.cpp \
63	$(top_srcdir)/src/LocalCartesian.cpp \
64	$(top_srcdir)/src/MGRS.cpp \
65	$(top_srcdir)/src/OSGB.cpp \
66	$(top_srcdir)/src/PolarStereographic.cpp \
67	$(top_srcdir)/src/PolygonArea.cpp \
68	$(top_srcdir)/src/TransverseMercator.cpp \
69	$(top_srcdir)/src/TransverseMercatorExact.cpp \
70	$(top_srcdir)/src/UTMUPS.cpp \
71	$(top_srcdir)/tools/CartConvert.cpp \
72	$(top_srcdir)/tools/ConicProj.cpp \
73	$(top_srcdir)/tools/GeodesicProj.cpp \
74	$(top_srcdir)/tools/GeoConvert.cpp \
75	$(top_srcdir)/tools/GeodSolve.cpp \
76	$(top_srcdir)/tools/GeoidEval.cpp \
77	$(top_srcdir)/tools/Gravity.cpp \
78	$(top_srcdir)/tools/Planimeter.cpp \
79	$(top_srcdir)/tools/TransverseMercatorProj.cpp
80
81MANPAGES = \
82	../man/CartConvert.1.html \
83	../man/ConicProj.1.html \
84	../man/GeodesicProj.1.html \
85	../man/GeoConvert.1.html \
86	../man/GeodSolve.1.html \
87	../man/GeoidEval.1.html \
88	../man/Gravity.1.html \
89	../man/MagneticField.1.html \
90	../man/Planimeter.1.html \
91	../man/RhumbSolve.1.html \
92	../man/TransverseMercatorProj.1.html
93
94doc: html/index.html
95
96if HAVE_DOXYGEN
97manpages: $(MANPAGES)
98	if test -d html; then rm -rf html/*; else mkdir html; fi
99	cp $^ html/
100	touch $@
101
102html/index.html: manpages doxyfile.in GeographicLib.dox.in \
103	$(HPPFILES) $(ALLSOURCES) $(EXTRAFILES) $(FIGURES)
104	cp -p $(EXTRAFILES) $(top_srcdir)/maxima/*.mac \
105	$(top_srcdir)/LICENSE.txt html/
106	sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \
107	$(srcdir)/GeographicLib.dox.in > GeographicLib.dox
108	sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \
109	-e "s%@PROJECT_BINARY_DIR@%..%g" \
110	-e "s%@PROJECT_VERSION@%$(VERSION)%g" \
111	$(srcdir)/doxyfile.in | $(DOXYGEN) -
112else
113html/index.html: index.html.in utilities.html.in
114	if test -d html; then rm -rf html/*; else mkdir html; fi
115	cp $(top_srcdir)/LICENSE.txt html/
116	sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \
117	$(srcdir)/utilities.html.in > html/utilities.html
118	sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \
119	$(srcdir)/index.html.in > html/index.html
120endif
121
122maintainer-clean-local:
123	rm -rf html manpages
124
125htmldir=$(DESTDIR)$(docdir)/html
126
127install-doc: html/index.html
128	$(INSTALL) -d $(htmldir)
129	$(INSTALL) -m 644 `dirname $<`/*.* $(htmldir)
130	-test -f `dirname $<`/search/search.js && \
131	$(INSTALL) -d $(htmldir)/search && \
132	$(INSTALL) -m 644 `dirname $<`/search/*.* $(htmldir)/search || true
133