summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b9d31105fc94c819ca49c8e8c4b820817bb89d62 (plain)
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
SUBDIRS =  po lib deps src doc test

ACLOCAL_AMFLAGS = -I m4 --install
RST2HTML = @RST2HTML@

EXTRA_DIST = config.rpath \
	     script-helper \
	     makerelease \
	     mingw-config mingw-release mingw-build-memo \
	     android-config android-make \
	     makerelease-osx.mk osx-package/DS_Store osx-package/etc/paths.d/aria2c osx-package/etc/manpaths.d/aria2 \
	     Dockerfile.mingw \
	     examples/libaria2ex.cc examples/libaria2wx.cc

dist_doc_DATA = README README.rst README.html

if HAVE_RST2HTML
README.html: README.rst
	$(RST2HTML)  $< > $@
else # !HAVE_RST2HTML
README.html: README.rst
	@echo Warning: rst2html not installed. Placing only a dummy file for $@
	echo "<!doctype html>" > $@
	echo "<p>Readme has not been built!.<br>Instead see <a href='README.rst'>README.rst</a></p>" >> $@
endif # !HAVE_RST2HTML

dist_noinst_DATA = LICENSE.OpenSSL