]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Mathias: silence some valgrind warnings so that you can concentrate better on the...
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         man \
4         scripts \
5         src \
6         utils
7
8 EXTRA_DIST = \
9         Thanks \
10         acinclude.m4 \
11         autogen.sh \
12         FlightGear.dsp \
13         FlightGear.dsw
14
15 dist-hook:
16         (cd $(top_srcdir); $(HOME)/Projects/FlightGear/admin/am2dsp.pl)
17         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
18                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
19
20
21 ##########################################################################
22 # extra targets to do various things ...
23 #
24 # Use "make <target>"
25 ##########################################################################
26
27
28 # make the base distribution with textures, sounds and a bit of
29 # scenery, and all the other associated files
30
31 fgfs-base-tar:
32         (cd ..; \
33         tar \
34         --exclude=CVS \
35         --exclude='*~' \
36         --exclude='*.tex' \
37         --exclude='*.xcf' \
38         --exclude='*/c172/Instruments.high' \
39         --exclude='*/Textures/Unused' \
40         --exclude='*/Textures.high/*.save' \
41         --exclude='*/Textures.high/*.new' \
42         --exclude='*/Docs/source' \
43         --exclude='*/Models/MNUAV' \
44         -cvf - \
45                 data/Aircraft/Generic \
46                 data/Aircraft/Instruments \
47                 data/Aircraft/Instruments-3d \
48                 data/Aircraft/UIUC \
49                 data/Aircraft/737 \
50                 data/Aircraft/A-10 \
51                 data/Aircraft/bo105 \
52                 data/Aircraft/c172 \
53                 data/Aircraft/c172p \
54                 data/Aircraft/c310 \
55                 data/Aircraft/c310u3a \
56                 data/Aircraft/Citation \
57                 data/Aircraft/f16 \
58                 data/Aircraft/j3cub \
59                 data/Aircraft/Hunter \
60                 data/Aircraft/p51d \
61                 data/Aircraft/pa28-161 \
62                 data/Aircraft/T38 \
63                 data/Aircraft/ufo \
64                 data/Aircraft/wrightFlyer1903 \
65                 data/Airports \
66                 data/Astro \
67                 data/ATC \
68                 data/AUTHORS \
69                 data/[C-H]* \
70                 data/Input \
71                 data/[J-R]* \
72                 data/Scenery \
73                 data/Sounds \
74                 data/T* \
75                 data/cloudlayers.xml \
76                 data/gui \
77                 data/[j-p]* \
78                 data/version \
79         | bzip2 --best > fgfs-base-$(VERSION).tar.bz2 \
80         )
81
82 fgfs-textures-high:
83         (cd $(HOME); \
84         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
85         FlightGear/Textures.high)
86
87 # make the mini JSBsim data distribution
88 jsbsim-data:
89         (cd $(HOME); \
90         tar czvf jsbsim-data-$(VERSION).tar.gz \
91         FlightGear/Aircraft \
92         FlightGear/Engine)
93
94 # make the documentation distribution
95
96 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
97
98 fgfs-docs-tar:
99         ( cd $(HOME); \
100         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
101
102 # fgfs-docs-zip:
103 #       ( cd $(HOME)/Projects ; \
104 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
105
106 fgfs-manual-zip:
107         ( cd $(HOME) ; \
108         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
109
110 # make the win32-bin distribution
111
112 fgfs-win32-bin:
113         (cd $(HOME); \
114         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
115         FlightGear/bin/Win32 )
116
117 # make the win32-libs distribution (depricated)
118 win32-libs:
119         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
120         Win32/README.glut Win32/cygwinb1.dll Win32/def \
121         Win32/*.exp Win32/gen-def-from-errors.pl \
122         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
123         Win32/impdef.exe Win32/include \
124         Win32/install.exe \
125         Win32/lib Win32/zlib.lib )
126
127 # make the MacOS (MWCWP3) devel support archive
128 macos-devel:
129         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
130
131 # clean up dependencies
132 clean-deps:
133         rm -rf .deps \
134         src/.deps tests/.deps \
135         src/*/.deps \
136         src/*/*/.deps \
137         tests/.deps
138
139 # clean up after libtool
140 clean-libs:
141         rm -rf .libs src/.libs \
142                 src/*/.libs \
143                 src/*/*/.libs 
144         rm -f src/*/so_locations \
145                 src/*/*/so_locations 
146
147 # clean up after winbloze spews random case for file names :-(
148 clean-winbloze: clean-deps clean-libs
149         rm -f makefile src/Include/makefile src/makefile \
150                 src/*/makefile \
151                 src/*/*/makefile \
152                 tests/makefile
153         rm -f src/Main/fg.exe