]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Initial revision.
[flightgear.git] / Makefile.am
1 SUBDIRS = Include Lib Simulator Tools Tests
2
3 EXTRA_DIST = README.Unix README.Linux README.MacOS README.Win32 \
4         README.autoconf README.gpc README.running Thanks VERSION \
5         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-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-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
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         Tests/.deps
86
87 # clean up after libtool
88 clean-libs:
89         rm -rf .libs Lib/.libs Simulator/.libs Tools/.libs \
90                 Lib/*/.libs Simulator/*/.libs Tools/*/.libs \
91                 Lib/*/*/.libs Simulator/*/*/.libs Tools/*/*/.libs
92         rm -f Simulator/*/so_locations Lib/*/so_locations \
93                 Simulator/*/*/so_locations Lib/*/*/so_locations
94
95 # clean up after winbloze spews random case for file names :-(
96 clean-winbloze: clean-deps clean-libs
97         rm -f makefile Include/makefile Lib/makefile Simulator/makefile \
98                 Tools/makefile \
99                 Lib/*/makefile Simulator/*/makefile Tools/*/makefile \
100                 Lib/*/*/makefile Simulator/*/*/makefile Tools/*/*/makefile \
101                 Tests/makefile
102         rm -f Src/Main/fg.exe Tools/*/*.exe