forked from Warzone2100/warzone2100
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
78 lines (70 loc) · 1.73 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
if BACKEND_QT
backend_subdir=lib/qtgame
else
backend_subdir=lib/sdl
endif
SUBDIRS = \
win32 \
3rdparty/miniupnpc \
3rdparty/quesoglc \
lib/framework \
lib/exceptionhandler \
lib/script \
lib/sequence \
lib/ivis_opengl \
lib/gamelib \
lib/sound \
lib/netplay \
lib/widget \
$(backend_subdir) \
tools/map \
src \
data \
po \
doc \
icons \
pkg/nsis \
tests
dist_doc_DATA = \
AUTHORS \
ChangeLog \
COPYING \
COPYING.NONGPL \
COPYING.README
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST= \
build_tools/autorevision.sh \
autogen.sh \
config.rpath \
configure.ac \
pkg/dpkg \
macosx \
3rdparty/SDL/mac \
po/custom/mac-infoplist.txt \
po/custom/warzone2100.desktop.txt
# get rid of SVN stuff in the tarball
dist-hook:
rm -rf `find $(distdir) -type d -name .svn`
javascript-doc-base:
grep $(top_srcdir)/src/qtscript.cpp -e '//==' | sed 's/\/\/==//' > doc/globals.tex
grep $(top_srcdir)/src/qtscriptfuncs.cpp -e '//==' | sed 's/\/\/==//' >> doc/globals.tex
grep $(top_srcdir)/src/qtscript.cpp -e '//__' | sed 's/\/\/__//' > doc/events.tex
grep $(top_srcdir)/src/qtscript.cpp -e '//--' | sed 's/\/\/--//' > doc/functions.tex
grep $(top_srcdir)/src/qtscriptfuncs.cpp -e '//--' | sed 's/\/\/--//' >> doc/functions.tex
grep $(top_srcdir)/src/qtscriptfuncs.cpp -e '//;;' | sed 's/\/\/;;//' > doc/objects.tex
test $(abs_top_srcdir) = $(abs_top_builddir) || cp $(top_srcdir)/doc/javascript.tex doc/
javascript-doc: javascript-doc-base
if PDFLATEX
(cd doc ; pdflatex javascript.tex)
else
echo "You need pdflatex installed!"
endif
javascript-doc-html: javascript-doc-base
if HEVEA
(cd doc; hevea javascript.tex; hevea javascript.tex)
if HACHA
(cd doc; hacha -o javascript-index.html javascript.html)
endif
else
echo "You need hevea installed!"
endif