]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Added a VERSION file to contain the current version number.
[flightgear.git] / Makefile.am
1 SUBDIRS = Include Lib Simulator Tools Tests
2
3 EXTRA_DIST = README.Unix README.Linux README.Win32 \
4         README.autoconf README.running Thanks VERSION acsite.m4
5
6 dist-hook:
7         tar cf - Hints | (cd $(distdir); tar xvf -)
8
9
10 ##########################################################################
11 # extra targets to do various things ...
12 #
13 # Use "make <target>"
14 ##########################################################################
15
16
17 # make the base distribution with textures, sounds and a bit of
18 # scenery, and all the other associated files
19
20 fgfs-base: fgfs-base-tar fgfs-base-zip
21
22 fgfs-base-tar:
23         (cd $(HOME); \
24         tar czvf fgfs-base-$(VERSION).tar.gz \
25         FlightGear/[A-R]* \
26         FlightGear/Scenery/w120n030/w111n033 \
27         FlightGear/Sounds \
28         FlightGear/Textures FlightGear/Thanks \
29         FlightGear/[m-r]* )
30
31 fgfs-base-zip:
32         (cd $(HOME); \
33         zip -r fgfs-base-$(VERSION).zip \
34         FlightGear/[A-R]* \
35         FlightGear/Scenery/w120n030/w111n033 \
36         FlightGear/Sounds \
37         FlightGear/Textures FlightGear/Thanks \
38         FlightGear/[m-r]* )
39
40
41 # make the documentation distribution
42
43 fgfs-docs: fgfs-docs-tar fgfs-docs-zip
44
45 fgfs-docs-tar:
46         ( cd .. ; \
47         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
48
49 fgfs-docs-zip:
50         ( cd .. ; \
51         zip -r fgfs-docs-$(VERSION).zip FlightGear/Docs )
52
53
54 # make the win32-bin distribution
55
56 fgfs-win32-bin:
57         (cd $(HOME); \
58         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
59
60 # make the win32-libs distribution
61 win32-libs:
62         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
63         Win32/README.glut Win32/cygwinb1.dll Win32/def \
64         Win32/*.exp Win32/gen-def-from-errors.pl \
65         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
66         Win32/impdef.exe Win32/include \
67         Win32/install.exe \
68         Win32/lib Win32/zlib.lib )
69
70 # clean up dependencies
71 clean-deps:
72         rm -rf .deps \
73         Lib/.deps Simulator/.deps Tools/.deps Test/.deps \
74         Lib/*/.deps Simulator/*/.deps Tools/*/.deps \
75         Lib/*/*/.deps Simulator/*/*/.deps Tools/*/*/.deps \
76         Tests/.deps
77
78 # clean up after libtool
79 clean-libs:
80         rm -rf .libs Lib/.libs Simulator/.libs Tools/.libs \
81                 Lib/*/.libs Simulator/*/.libs Tools/*/.libs \
82                 Lib/*/*/.libs Simulator/*/*/.libs Tools/*/*/.libs
83         rm -f Simulator/*/so_locations Lib/*/so_locations \
84                 Simulator/*/*/so_locations Lib/*/*/so_locations
85
86 # clean up after winbloze spews random case for file names :-(
87 clean-winbloze: clean-deps clean-libs
88         rm -f makefile Include/makefile Lib/makefile Simulator/makefile \
89                 Tools/makefile \
90                 Lib/*/makefile Simulator/*/makefile Tools/*/makefile \
91                 Lib/*/*/makefile Simulator/*/*/makefile Tools/*/*/makefile \
92                 Tests/makefile
93         rm -f Src/Main/fg.exe Tools/*/*.exe