]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Mathias Fröhlich:
[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-0.9/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         -cvf - \
44                 data/ATC \
45                 data/AUTHORS \
46                 data/Aircraft/737 \
47                 data/Aircraft/747 \
48                 data/Aircraft/A-10 \
49                 data/Aircraft/A320 \
50                 data/Aircraft/AN-225 \
51                 data/Aircraft/B-52F \
52                 data/Aircraft/BAC-TSR2 \
53                 data/Aircraft/ComperSwift \
54                 data/Aircraft/Generic \
55                 data/Aircraft/Hunter \
56                 data/Aircraft/Instruments \
57                 data/Aircraft/Instruments-3d \
58                 data/Aircraft/OV10 \
59                 data/Aircraft/Spitfire \
60                 data/Aircraft/T38 \
61                 data/Aircraft/UIUC \
62                 data/Aircraft/X15 \
63                 data/Aircraft/YF-23 \
64                 data/Aircraft/a4 \
65                 data/Aircraft/beech99 \
66                 data/Aircraft/bo105 \
67                 data/Aircraft/c172 \
68                 data/Aircraft/c172-fs-set.xml \
69                 data/Aircraft/c172-le \
70                 data/Aircraft/c172p \
71                 data/Aircraft/c172r \
72                 data/Aircraft/c172x \
73                 data/Aircraft/c182 \
74                 data/Aircraft/c310 \
75                 data/Aircraft/c310u3a \
76                 data/Aircraft/dc3 \
77                 data/Aircraft/f16 \
78                 data/Aircraft/j22 \
79                 data/Aircraft/j3cub \
80                 data/Aircraft/ornithopter \
81                 data/Aircraft/p51d \
82                 data/Aircraft/pa28-161 \
83                 data/Aircraft/seahawk \
84                 data/Aircraft/sgs233 \
85                 data/Aircraft/t6texan2 \
86                 data/Aircraft/tu154 \
87                 data/Aircraft/ufo \
88                 data/Aircraft/wrightFlyer1903 \
89                 data/Airports \
90                 data/Astro \
91                 data/[C-H]* \
92                 data/Input \
93                 data/[J-R]* \
94                 data/Scenery \
95                 data/Sounds \
96                 data/[T-W]* \
97                 data/gui \
98                 data/[j-p]* \
99                 data/version \
100         | bzip2 --best > fgfs-base-$(VERSION).tar.bz2 \
101         )
102
103 fgfs-textures-high:
104         (cd $(HOME); \
105         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
106         FlightGear/Textures.high)
107
108 # make the mini JSBsim data distribution
109 jsbsim-data:
110         (cd $(HOME); \
111         tar czvf jsbsim-data-$(VERSION).tar.gz \
112         FlightGear/Aircraft \
113         FlightGear/Engine)
114
115 # make the documentation distribution
116
117 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
118
119 fgfs-docs-tar:
120         ( cd $(HOME); \
121         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
122
123 # fgfs-docs-zip:
124 #       ( cd $(HOME)/Projects ; \
125 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
126
127 fgfs-manual-zip:
128         ( cd $(HOME) ; \
129         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
130
131 # make the win32-bin distribution
132
133 fgfs-win32-bin:
134         (cd $(HOME); \
135         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
136         FlightGear/bin/Win32 )
137
138 # make the win32-libs distribution (depricated)
139 win32-libs:
140         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
141         Win32/README.glut Win32/cygwinb1.dll Win32/def \
142         Win32/*.exp Win32/gen-def-from-errors.pl \
143         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
144         Win32/impdef.exe Win32/include \
145         Win32/install.exe \
146         Win32/lib Win32/zlib.lib )
147
148 # make the MacOS (MWCWP3) devel support archive
149 macos-devel:
150         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
151
152 # clean up dependencies
153 clean-deps:
154         rm -rf .deps \
155         src/.deps tests/.deps \
156         src/*/.deps \
157         src/*/*/.deps \
158         tests/.deps
159
160 # clean up after libtool
161 clean-libs:
162         rm -rf .libs src/.libs \
163                 src/*/.libs \
164                 src/*/*/.libs 
165         rm -f src/*/so_locations \
166                 src/*/*/so_locations 
167
168 # clean up after winbloze spews random case for file names :-(
169 clean-winbloze: clean-deps clean-libs
170         rm -f makefile src/Include/makefile src/makefile \
171                 src/*/makefile \
172                 src/*/*/makefile \
173                 tests/makefile
174         rm -f src/Main/fg.exe