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